From 137bb109d676c5f4ce447644853dc55ce3f0033a Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Tue, 31 May 2011 02:40:53 -0300 Subject: [PATCH] set_escdelay(0). --- lib/curses.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/curses.c b/lib/curses.c index 2edceea..e6fa2af 100644 --- a/lib/curses.c +++ b/lib/curses.c @@ -4,13 +4,14 @@ #include "curses.h" void initialize_curses() { - setlocale(LC_ALL, "en_US.utf-8"); /* supporting unicode characters */ - initscr(); /* initialize the terminal in curses mode */ - raw(); /* disable line buffers */ - noecho(); /* character echo is unnecessary */ - keypad(stdscr, TRUE); /* enable F and arrow keys */ - start_color(); /* I want colors */ - curs_set(FALSE); /* invisible cursor */ + setlocale(LC_ALL, "en_US.utf-8"); /* Support unicode characters. */ + initscr(); + raw(); /* Disable line buffers. */ + noecho(); + keypad(stdscr, TRUE); /* Enable arrow keys. */ + start_color(); /* I want colors. */ + curs_set(FALSE); /* Invisible cursor. */ + set_escdelay(0); assume_default_colors(COLOR_WHITE, COLOR_GREEN); init_pair(1, COLOR_BLACK, COLOR_WHITE);