From bfada7939cb37c94e5b6ed1625b24d779446dd21 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Sep 2004 17:13:05 +0000 Subject: change title attributes from reverse to bold --- watch.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/watch.c b/watch.c index a81fcb4..5f2f141 100644 --- a/watch.c +++ b/watch.c @@ -61,7 +61,6 @@ char buffer[BUFSIZE]; int period = 2; int f_die = 0; int f_notitle = 0; -int f_color = 0; int lines; int cols; @@ -105,10 +104,7 @@ main(int argc, char **argv) initscr(); lines = LINES; cols = COLS; - hold_curs = curs_set(0); - if (has_colors()) - f_color = 1; signal(SIGALRM, display); settimer(period); @@ -220,11 +216,9 @@ title(void) tm->tm_hour, tm->tm_min, tm->tm_sec); title[cols] = '\0'; - if (f_color == 1) - attron(A_REVERSE); + attron(A_BOLD); addstr(title); - if (f_color == 1) - attroff(A_REVERSE); + attroff(A_BOLD); move(2, 0); return 0; -- cgit v1.2.3