bug-readline
[Top][All Lists]
Advanced

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

Escape character when keyseq-timeout is 0


From: Brian Cummings
Subject: Escape character when keyseq-timeout is 0
Date: Tue, 6 Feb 2024 04:03:29 -0500

Hello,

I was just hoping to inquire about something I noticed while messing with some readline settings and using bash. My apologies if this is a silly question or if I've overlooked something.

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?

The man page for readline says
If this variable is set to a value less than or equal to zero, or to a non-numeric value, readline will wait until another key is pressed to decide which key sequence to complete.
and when I tried other ambiguous key sequences (that don't start with Esc) with keyseq-timeout set to 0 things seem to work as that description states.

Using bash in WSL (Ubuntu 22.04.3 LTS) on a Windows 10 machine.
bash version: GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
readline version: 8.01

If you have any insight that would be great.

Thanks,
Brian

reply via email to

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