X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fcurs_lib.c;h=437ffbcc187614edb3d370f71db05a1f5e1ae92f;hb=00f34116b32751764d42f81159c292d850c74bac;hp=1051759501713bfd6110105afcced8c66dd1d618;hpb=62660b191284bee3b9bc3eeb126f7632636af535;p=apps%2Fmadmutt.git diff --git a/lib-ui/curs_lib.c b/lib-ui/curs_lib.c index 1051759..437ffbc 100644 --- a/lib-ui/curs_lib.c +++ b/lib-ui/curs_lib.c @@ -26,6 +26,7 @@ #include "mutt.h" #include "pager.h" #include "charset.h" +#include "madtty.h" /* not possible to unget more than one char under some curses libs, and it * is impossible to unget function keys in SLang, so roll our own input @@ -309,16 +310,17 @@ void mutt_show_error (void) void curses_initialize(void) { - if (initscr () == NULL) { - puts _("Error initializing terminal."); - exit (1); - } + initscr(); + start_color(); + madtty_init_colors(); 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; } /*