bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] immediate acceptance of ESC in vi mode


From: Chet Ramey
Subject: Re: [Bug-readline] immediate acceptance of ESC in vi mode
Date: Tue, 10 Apr 2012 15:41:49 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 3/28/12 8:50 AM, Barry Downes wrote:
> Short version:
> I had a problem with bash/readline misinterpreting input sequences in vi
> mode and erasing half my input line.  To fix it I got my terminal to send
> the less ambiguous "\eO[" instead of just "\e" for the escape key.  But
> there was a hack in the readline code which was still causing problems, so
> I added the "vi-escape-hack" variable so I could disable the hack from my
> .inputrc.  The patch for this variable is attached.  Naturally readline's
> behaviour remains unchanged for the default value of the variable.

Take a look at the bug-bash thread containing
http://lists.gnu.org/archive/html/bug-bash/2012-01/msg00094.html .
That describes the addition of an inter-character timeout to readline for
use in other contexts where it reads multi-character key sequences.  I
see no reason it won't work here also.  If the timeout variable is set,
it's used; if it's not, the current behavior is preserved.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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