summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 771e6b1..dbcfd0b 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -52,6 +52,11 @@ screen_new(void)
}
curs_set(0); /* Ignore errors. */
+ if (has_colors() && start_color() != ERR) {
+ init_pair(1, COLOR_RED, COLOR_BLACK);
+ wcolor_set(screen->win, 1, NULL);
+ }
+
screen->clock = clock_new(screen->win);
if (screen->clock == NULL) {
free(screen);