void curses_initialize(void)
{
+ if (initscr () == NULL) {
+ puts _("Error initializing terminal.");
+ exit (1);
+ }
ci_start_color();
keypad(stdscr, true);
cbreak();
meta(stdscr, true);
}
-void _mutt_perror (const char *s, const char* filename, int line)
-{
- char *p = strerror (errno);
- mutt_error ("%s: %s (errno = %d) from %s:%i", s, p ? p : _("unknown error"), errno, filename, line);
-}
-
/*
* prompts the user to enter a keystroke, and displays the octal value back
* to the user.