diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-01-14 21:46:53 -0800 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-01-17 17:45:30 -0800 |
commit | 4b9fece9f48615f2e8068054c60763e844415a7c (patch) | |
tree | 794abe80d918138297592c13054c75a4dcb4db20 /src/input_common.h | |
parent | 6969cfab3dc20de9f757b94b8832b504ed1fdd40 (diff) |
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.
Diffstat (limited to 'src/input_common.h')
-rw-r--r-- | src/input_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |