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: Wed, 20 Mar 2024 09:12:20 -0400
User-agent: Mozilla Thunderbird

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]