From 877f229182197be2cdd0a9ac7a661d6a6015841c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 13 Oct 2019 23:53:51 -0400 Subject: screen_new(): Draw in red on black --- 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); -- cgit v0.9.1