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/