aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2004-09-12 17:13:05 +0000
committerDimitri Sokolyuk <demon@dim13.org>2004-09-12 17:13:05 +0000
commitbfada7939cb37c94e5b6ed1625b24d779446dd21 (patch)
tree7f347004450d224c0cdd022bb91e8fd54acf51e9
parentcf279b722fbc2122f1e13a5f05f5268b4d196bd4 (diff)
change title attributes from reverse to bold
-rw-r--r--watch.c10
1 files 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;