init_pair(COLOR_BOT, theme.default_fg, theme.default_bg);
}
-/*
- * (re-)initialize the curses library FIXME: Error checking
- */
+/* (Re-)initialize the curses library. FIXME: Error checking. */
static void init_curses(void)
{
curses_active = 1;
- if (top.win && refresh() == ERR) { /* refesh is really needed */
+ if (top.win && refresh() == ERR) /* refesh is really needed */
msg_n_exit(EXIT_FAILURE, "refresh() failed\n");
- }
check_geometry();
curs_set(0); /* make cursor invisible, ignore errors */
-// if (noraw() == ERR);
-// msg_n_exit(EXIT_FAILURE, "can not place terminal out of "
-// "raw mode\n");
nonl(); /* tell curses not to do NL->CR/NL on output */
noecho(); /* don't echo input */
cbreak(); /* take input chars one at a time, no wait for \n */
- //reset_prog_mode();
init_colors();
clear();
init_wins(theme.top_lines_default);
noecho(); /* don't echo input */
}
-
static void check_sigchld(void)
{
int ret;