diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-10-13 23:53:51 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-10-13 23:53:51 (EDT) |
commit | 877f229182197be2cdd0a9ac7a661d6a6015841c (patch) | |
tree | 437ccaa1adb52b4767121be9f48a5abba7d6bd7d | |
parent | 0c52d3b1404fcb359d91d5757227ad4f3cc73406 (diff) | |
download | timeteller-877f229182197be2cdd0a9ac7a661d6a6015841c.zip timeteller-877f229182197be2cdd0a9ac7a661d6a6015841c.tar.gz timeteller-877f229182197be2cdd0a9ac7a661d6a6015841c.tar.bz2 |
screen_new(): Draw in red on black
-rw-r--r-- | src/screen.c | 5 |
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); |