bug-readline
[Top][All Lists]
Advanced

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

回复:Re: The backspace key can only move forward and cannot delete charact


From: 高剑平
Subject: 回复:Re: The backspace key can only move forward and cannot delete characters
Date: Fri, 22 Mar 2024 10:51:29 +0800


Hello :
     my environment is :
        stty-a 
        

   /etc/inputrc 
   

      I am currently using readline8.2, the problem still exists.
 

Chet Ramey<chet.ramey@case.edu> 在 2024年3月21日 周四 23:40 写道:
On 3/20/24 11:56 PM, 高剑平 wrote:
> 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

The key sequence I gave was just an example, not something that your
backspace key might output. If you don't have success with the options
in Branden's message, you could look at the output of `stty -a' and see
what your terminal erase character is.

And you don't need to modify the source code; modifying ~/.inputrc or
/etc/inputrc is sufficient.

--
``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]