From c71e3a68a65b0f605c89a6d12bd06a3f18214c81 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 30 Jul 2017 15:05:20 -0400 Subject: Add ostensible support for background colors --- client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index b2a72d5..caa2841 100755 --- a/client.c +++ b/client.c @@ -287,8 +287,10 @@ static void initColors(void) { exit(EX_CONFIG); } start_color(); - for (int fg = COLOR_RED; fg < COLOR_BRIGHT; ++fg) { - init_pair(fg, fg, COLOR_BLACK); + for (int bg = COLOR_BLACK; bg < COLOR_BRIGHT; ++bg) { + for (int fg = COLOR_BLACK; fg < COLOR_BRIGHT; ++fg) { + init_pair(bg << 4 | fg, fg, bg); + } } } -- cgit 1.4.1