bug-readline
[Top][All Lists]
Advanced

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

Re: Escape character when keyseq-timeout is 0


From: Chet Ramey
Subject: Re: Escape character when keyseq-timeout is 0
Date: Wed, 7 Feb 2024 10:41:34 -0500
User-agent: Mozilla Thunderbird

On 2/6/24 4:03 AM, Brian Cummings wrote:

In vi-mode with keyseq-timeout set to 0, I've noticed that Esc won't wait for another key to be pressed to see if it's part of a longer key sequence. Instead it appears to immediately execute the vi-movement-mode function. I'm wondering if this is intentional and/or some special exception?

Readline special-cases ESC in vi insertion mode and doesn't wait
indefinitely. This dates back to 2012; readline only uses the key sequence
timeout in this case if it's greater than 0.

https://lists.gnu.org/archive/html/bug-readline/2012-03/msg00002.html

Not waiting indefinitely preserved backwards compatibility.

--
``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]