From 4b9fece9f48615f2e8068054c60763e844415a7c Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Thu, 14 Jan 2016 21:46:53 -0800 Subject: allow configuring the escape delay timeout Introduce a "fish_escape_delay_ms" variable to allow the user to configure the delay used when seeing a bare escape before assuming no other characters will be received that might match a bound character sequence. This is primarily useful for vi mode so that a bare escape character (i.e., keystroke) can switch to vi "insert" to "normal" mode in a timely fashion. --- src/input_common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/input_common.h') diff --git a/src/input_common.h b/src/input_common.h index 5ec34b39..72ccc073 100644 --- a/src/input_common.h +++ b/src/input_common.h @@ -35,6 +35,9 @@ void input_common_init(int (*ih)()); */ void input_common_destroy(); +// Adjust the escape timeout. +void update_wait_on_escape_ms(); + /** Function used by input_readch to read bytes from stdin until enough bytes have been read to convert them to a wchar_t. Conversion is -- cgit v1.2.3