From 349cc6da144cd6faafa1b7d65c955c513abafdd2 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 8 Apr 2013 23:11:35 -0400 Subject: Reduce the delay when pressing the Escape key in curses; src/textadept.c --- src/textadept.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index 100b37b8..6a41b5a2 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2235,6 +2235,9 @@ int main(int argc, char **argv) { #if _WIN32 raw(), noecho(); #endif +#ifdef NCURSES_REENTRANT + ESCDELAY = getenv("ESCDELAY") ? atoi(getenv("ESCDELAY")) : 100; +#endif #endif char *last_slash = NULL; -- cgit v1.2.3