From b055b8440c87c69e7f92a81f114ee77f48940f66 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Fri, 6 May 2016 21:22:28 -0700 Subject: enhance the key_reader program The original `key_reader` program was useful but didn't do much that `xxd` or `od -tx1z` didn't do. Furthermore, it wasn't built and installed by default. This change adds features that make it superior to those programs for decoding interactive key presses and makes it a first-class citizen like the `fish_indent` program that is always available. Fixes #2991 --- 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 d7bafe3f..e5778b70 100644 --- a/src/input_common.h +++ b/src/input_common.h @@ -85,6 +85,9 @@ void input_common_destroy(); /// Adjust the escape timeout. void update_wait_on_escape_ms(); +/// Set the escape timeout directly. +void set_wait_on_escape_ms(int 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 done using mbrtowc. If a character has previously been /// read and then 'unread' using \c input_common_unreadch, that character is returned. If timed is -- cgit v1.2.3