From 1fb2c98b392b44f8a9ad3512608c92e1dad9c7af Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 5 Aug 2018 19:32:11 -0400 Subject: Fix color pairs once and for all 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. --- help.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'help.c') 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(); -- cgit 1.4.1