about summary refs log tree commit diff homepage
path: root/help.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-05 19:32:11 -0400
committerJune McEnroe <june@causal.agency>2018-08-05 19:32:11 -0400
commit1fb2c98b392b44f8a9ad3512608c92e1dad9c7af (patch)
tree116e245075517c79707632d3a59cd7b113a2999d /help.c
parentAdd chat to index.html (diff)
downloadtorus-1fb2c98b392b44f8a9ad3512608c92e1dad9c7af.tar.gz
torus-1fb2c98b392b44f8a9ad3512608c92e1dad9c7af.zip
Fix color pairs once and for all v1
8/16 color setup adapted from chat/ui.c. termcap patch hack no longer
required. Black on black and bright black now work. Nothing will appear
bold anymore on 256-color terminals.

The keys for black have definitely always been in the help. You just
didn't notice.
Diffstat (limited to 'help.c')
-rw-r--r--help.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/help.c b/help.c
index f000638..dd13c4f 100644
--- a/help.c
+++ b/help.c
@@ -49,6 +49,7 @@ static void clientPut(uint8_t color, char cell) {
 static const useconds_t DELAY = 50000;
 
 enum {
+	K = COLOR_BLACK,
 	R = COLOR_RED,
 	G = COLOR_GREEN,
 	Y = COLOR_YELLOW,
@@ -164,9 +165,11 @@ int main() {
 		clientPut(Y, '3'); k();
 		clientPut(G, '2'); k();
 		clientPut(R, '1'); k();
+		clientPut(K, '0');
 
-		l(); n();
+		l(); l();
 
+		clientPut(K << 4, ')'); j();
 		clientPut(R << 4, '!'); j();
 		clientPut(G << 4, '@'); j();
 		clientPut(Y << 4, '#'); j();