From 44d40c0c021b65cbfa88466b34054d0fcbcc2a45 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 30 Jan 2011 13:23:14 +0100 Subject: [PATCH] gui: Cosmetic cleanups for init_curses(). Remove some code which was commented out long ago, nicify a comment and kill some unnecessary braces. --- gui.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gui.c b/gui.c index 42e7dd07..1498426a 100644 --- a/gui.c +++ b/gui.c @@ -788,24 +788,17 @@ static void init_colors(void) 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); @@ -813,7 +806,6 @@ static void init_curses(void) noecho(); /* don't echo input */ } - static void check_sigchld(void) { int ret; -- 2.39.5