From dc0b1427d4c61961cd12cc78d9f89d9b39e9b14a Mon Sep 17 00:00:00 2001
From: David Adam <zanchey@ucc.gu.uwa.edu.au>
Date: Tue, 9 Jul 2024 14:19:13 +0800
Subject: [PATCH] client: use brblack for disabled items rather than relying on
 bold attribute

---
 src/client/menu.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/client/menu.c b/src/client/menu.c
index 90f82dc..56df5dc 100644
--- a/src/client/menu.c
+++ b/src/client/menu.c
@@ -99,7 +99,10 @@ int ShowNCursesUI(void)
 	initscr();
 	start_color();
 	use_default_colors();
-	init_pair(COLOURPAIR_CANTBUY,  COLOR_BLACK,  -1);	// Not avaliable
+	init_pair(COLOURPAIR_CANTBUY,  8,  -1);	// Not available; colour 8 is "bright black" ie grey
+						// Previously this was COLOR_BLACK + the bold attribute, but
+						// that is not rendered the same way by all terminals
+						// ncurses does not have names for bright colours
 	init_pair(COLOURPAIR_SELECTED, COLOR_GREEN,  -1);	// Selected
 	cbreak(); noecho();
 	
-- 
GitLab