From b56bc7130e7158590c6e863adcb18fe9d46741b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 22 Nov 2016 14:42:11 +0100 Subject: ui: remove $ESCDELAY handling We are no longer using curses for input handling, hence this code is obsolete. --- ui-curses.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ui-curses.c b/ui-curses.c index 9042f82..4e07e4c 100644 --- a/ui-curses.c +++ b/ui-curses.c @@ -36,13 +36,6 @@ # define MAX_COLOR_PAIRS COLOR_PAIRS #endif -#ifdef PDCURSES -int ESCDELAY; -#endif -#ifndef NCURSES_REENTRANT -# define set_escdelay(d) (ESCDELAY = (d)) -#endif - #define CONTROL(k) ((k)&0x1F) #ifndef DEBUG_UI @@ -1143,8 +1136,6 @@ static bool ui_init(Ui *ui, Vis *vis) { goto err; } - if (!getenv("ESCDELAY")) - set_escdelay(50); if (!newterm(term, stderr, stdin)) { snprintf(uic->info, sizeof(uic->info), "Warning: unknown term `%s'", term); if (!newterm(strstr(term, "-256color") ? "xterm-256color" : "xterm", stderr, stdin)) -- cgit v1.2.3