From: Pierre Habouzit Date: Sat, 10 Nov 2007 14:27:52 +0000 (+0100) Subject: Better curses init. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=17759b32873166573ee7bfaf298ae90434779ed7;p=apps%2Fmadmutt.git Better curses init. Signed-off-by: Pierre Habouzit --- diff --git a/lib-ui/curs_lib.c b/lib-ui/curs_lib.c index 1051759..ac049bf 100644 --- a/lib-ui/curs_lib.c +++ b/lib-ui/curs_lib.c @@ -309,16 +309,15 @@ void mutt_show_error (void) void curses_initialize(void) { - if (initscr () == NULL) { - puts _("Error initializing terminal."); - exit (1); - } + initscr(); ci_start_color(); - keypad(stdscr, true); - cbreak(); noecho(); - typeahead (-1); /* simulate smooth scrolling */ + raw(); + keypad(stdscr, true); + typeahead(-1); meta(stdscr, true); + curs_set(0); + ESCDELAY = 50; } /*