bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: The backspace key can only move forward and cannot delete charac


From: 高剑平
Subject: Re: Re: The backspace key can only move forward and cannot delete characters
Date: Thu, 21 Mar 2024 11:56:14 +0800

hello :
          
1. Find out what key sequence your backspace key emits. This is terminal-
    specific, but you might be able to find it in your terminal app's
    settings. Let's say it's \033[3~

I modified the code like this

   


2. Bind that sequence to the desired command in ~/.inputrc
"\033[3~":backward-delete-char

 I modified the/etc/inputrc file

  

But the problem has not been solved.

thanks


gaojianping@onvcom.com
 
From: Chet Ramey
Date: 2024-03-20 21:12
To: 高剑平; bug-readline
CC: chet.ramey
Subject: Re: The backspace key can only move forward and cannot delete characters
On 3/19/24 9:38 PM, 高剑平 wrote:
> hello,
>
> thanks  for your help.
>
> I updated to V8.2, but the problem still exists.
>
> May I ask how to bound to `delete-char' instead of `backward-delete-char'.
 
This is backward; it sounds like you want to bind it to backward-delete-char.
 
 
1. Find out what key sequence your backspace key emits. This is terminal-
    specific, but you might be able to find it in your terminal app's
    settings. Let's say it's \033[3~
 
2. Bind that sequence to the desired command in ~/.inputrc
 
"\033[3~":backward-delete-char
 
 
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]