summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-30 15:05:20 -0400
committerJune McEnroe <june@causal.agency>2017-07-30 15:05:20 -0400
commit16a31d2f7483f21d413efc44f182c85cc40fee89 (patch)
treeb41cb208be65f1118e553ed4f5900517a49e88cb
parentAdd tile create and access timestamps (diff)
downloadtorus-16a31d2f7483f21d413efc44f182c85cc40fee89.tar.gz
torus-16a31d2f7483f21d413efc44f182c85cc40fee89.zip
Add ostensible support for background colors
Diffstat (limited to '')
-rwxr-xr-xclient.c6
1 files changed, 4 insertions, 2 deletions
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);
+        }
     }
 }