Curses: swap the grey and no-color initialization

The grey color was initialized as default foreground color,
and no-color as white.
This commit is contained in:
Pasi Kallinen
2024-03-15 11:06:36 +02:00
parent ab6d7cdc3b
commit 464d0c9269
2 changed files with 3 additions and 2 deletions

View File

@@ -2043,6 +2043,7 @@ curses: if user's terminal was set to 'application keypad mode' (DEC VTxxx
entry told the terminal to send 8-bit escape sequences (via 3 char
"ESC SPC G"), nethack wasn't recognizing number pad keys
curses: change petattr attributes, dropping support for curses-only ones
curses: swap the grey and no-color color initialization
macOS: Xcode project was failing to build if the path to the NetHack source
tree contained a space; the issue was within some shell script code
contained within the project

View File

@@ -310,7 +310,7 @@ curses_init_nhcolors(void)
init_pair(5, COLOR_BLUE, -1);
init_pair(6, COLOR_MAGENTA, -1);
init_pair(7, COLOR_CYAN, -1);
init_pair(8, -1, -1);
init_pair(8, COLOR_WHITE, -1);
{
int i;
@@ -351,7 +351,7 @@ curses_init_nhcolors(void)
init_pair(1, COLOR_BLACK + 8, -1);
}
# endif
init_pair(9, COLOR_WHITE, -1);
init_pair(9, -1, -1);
init_pair(10, COLOR_RED + 8, -1);
init_pair(11, COLOR_GREEN + 8, -1);
init_pair(12, COLOR_YELLOW + 8, -1);