#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
void curses_initialize(void)
{
- if (initscr () == NULL) {
- puts _("Error initializing terminal.");
- exit (1);
- }
+ initscr();
+ if (start_color() == ERR || !has_colors() || COLORS < 8)
+ mutt_exit(-1);
+ 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;
}
/*