From ff73132b49900fddd76e82c75372b60f49d44889 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sun, 16 Jun 2013 04:40:38 +0000 Subject: [PATCH] Set default escape key delay --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index d3fa34d..3071fbf 100644 --- a/src/main.c +++ b/src/main.c @@ -15,6 +15,8 @@ * along with this program. If not, see . */ +#define _XOPEN_SOURCE + #include #include #include @@ -46,6 +48,10 @@ int main(int argc, char **argv) /* Misc setup */ signal(SIGINT, on_sigint); + /* Set default escape timeout */ + if (!getenv("ESCDELAY")) + putenv("ESCDELAY=25"); + /* Setup Curses */ setlocale(LC_ALL, ""); initscr(); -- 2.43.2