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 characters


From: Chet Ramey
Subject: Re: The backspace key can only move forward and cannot delete characters
Date: Thu, 21 Mar 2024 11:40:01 -0400
User-agent: Mozilla Thunderbird

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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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