summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-05 18:34:35 -0400
committerJune McEnroe <june@causal.agency>2018-08-05 18:34:35 -0400
commit5bb96a79e76d92fa7ce9839a151a778f79d0ef06 (patch)
tree5654e13a3f2385d07d7d1e16740779513a339330
parentRefactor color initialization (diff)
downloadcatgirl-5bb96a79e76d92fa7ce9839a151a778f79d0ef06.tar.gz
catgirl-5bb96a79e76d92fa7ce9839a151a778f79d0ef06.zip
Initialize all possible color pairs
This is actually possible with use_default_colors!
Diffstat (limited to '')
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 5091431..1925108 100644
--- a/ui.c
+++ b/ui.c
@@ -42,7 +42,7 @@ static void colorInit(void) {
 	start_color();
 	use_default_colors();
 	if (COLORS >= 16) {
-		for (short pair = 0; pair < 0xFF; ++pair) {
+		for (short pair = 0; pair < 0x100; ++pair) {
 			if (pair < 0x10) {
 				init_pair(1 + pair, pair, -1);
 			} else {
@@ -50,7 +50,7 @@ static void colorInit(void) {
 			}
 		}
 	} else {
-		for (short pair = 0; pair < 077; ++pair) {
+		for (short pair = 0; pair < 0100; ++pair) {
 			if (pair < 010) {
 				init_pair(1 + pair, pair, -1);
 			} else {
icate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe