From: Pierre Habouzit Date: Sat, 11 Nov 2006 00:58:45 +0000 (+0100) Subject: simplifications X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=098c96356d6cd6460fb7f5ab74db53d91add9333;p=apps%2Fmadtty.git simplifications Signed-off-by: Pierre Habouzit --- diff --git a/madtty/madtty.c b/madtty/madtty.c index 3121367..80db4c6 100644 --- a/madtty/madtty.c +++ b/madtty/madtty.c @@ -78,10 +78,6 @@ RoteTerm *rote_vt_create(int rows, int cols) rt->pd->scrolltop = 0; rt->pd->scrollbottom = rt->rows - 1; -#ifdef DEBUG - fprintf(stderr, "Created a %d x %d terminal.\n", rt->rows, rt->cols); -#endif - return rt; } @@ -109,12 +105,10 @@ static void default_cur_set_attr(WINDOW *win, unsigned char attr) if (ROTE_ATTR_BLINK(attr)) wattron(win, A_BLINK); } -#endif - -static inline unsigned char ensure_printable(unsigned char ch) -{ return ch >= 32 ? ch : 32; } - -#ifdef USE_NCURSES +static inline unsigned char ensure_printable(unsigned char ch) +{ + return ch >= 32 ? ch : 32; +} void rote_vt_draw(RoteTerm *rt, WINDOW *win, int srow, int scol, void (*cur_set_attr)(WINDOW*,unsigned char)) {