From 07f41e646fddef61b5e53cbd7fc504d96cbbda1a Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 23 Oct 2012 01:31:19 +0100 Subject: Check for method of setting ESCDELAY --- src/input_win.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/input_win.c b/src/input_win.c index 408bd45a..9ee71ce1 100644 --- a/src/input_win.c +++ b/src/input_win.c @@ -72,8 +72,11 @@ static void _parameter_autocomplete(char *input, int *size, char *command, void create_input_window(void) { - if (getenv("ESCDELAY") == NULL) - ESCDELAY = 25; +#ifdef NCURSES_REENTRANT + set_escdelay(25); +#else + ESCDELAY = 25; +#endif int rows, cols; getmaxyx(stdscr, rows, cols); -- cgit 1.4.1-2-gfad0