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/