From: John Hodge Date: Sun, 15 Jul 2012 13:52:11 +0000 (+0800) Subject: Client - Fixed funny colours X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d08f812d7f468b5678ab12e59da35ccb585ab772;p=tpg%2Fopendispense2.git Client - Fixed funny colours --- diff --git a/src/client/menu.c b/src/client/menu.c index e420ef9..8e57b06 100644 --- a/src/client/menu.c +++ b/src/client/menu.c @@ -15,6 +15,7 @@ #include "common.h" // === CONSTANTS === +#define COLOURPAIR_DEFAULT 0 #define COLOURPAIR_CANTBUY 1 #define COLOURPAIR_SELECTED 2 @@ -90,8 +91,10 @@ int ShowNCursesUI(void) // Enter curses mode initscr(); start_color(); - init_pair(COLOURPAIR_CANTBUY, COLOR_BLACK, COLOR_BLACK); // Not avaliable - init_pair(COLOURPAIR_SELECTED, COLOR_GREEN, COLOR_BLACK); // Selected + use_default_colors(); + init_pair(COLOURPAIR_DEFAULT, -1, -1); // Not avaliable + init_pair(COLOURPAIR_CANTBUY, COLOR_BLACK, -1); // Not avaliable + init_pair(COLOURPAIR_SELECTED, COLOR_GREEN, -1); // Selected cbreak(); noecho(); // Get max index