From: Andy Spencer Date: Sun, 16 Jun 2013 04:40:38 +0000 (+0000) Subject: Set default escape key delay X-Git-Url: http://pileus.org/git/?p=lackey;a=commitdiff_plain;h=ff73132b49900fddd76e82c75372b60f49d44889 Set default escape key delay --- 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();