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:
@@ -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
|
entry told the terminal to send 8-bit escape sequences (via 3 char
|
||||||
"ESC SPC G"), nethack wasn't recognizing number pad keys
|
"ESC SPC G"), nethack wasn't recognizing number pad keys
|
||||||
curses: change petattr attributes, dropping support for curses-only ones
|
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
|
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
|
tree contained a space; the issue was within some shell script code
|
||||||
contained within the project
|
contained within the project
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ curses_init_nhcolors(void)
|
|||||||
init_pair(5, COLOR_BLUE, -1);
|
init_pair(5, COLOR_BLUE, -1);
|
||||||
init_pair(6, COLOR_MAGENTA, -1);
|
init_pair(6, COLOR_MAGENTA, -1);
|
||||||
init_pair(7, COLOR_CYAN, -1);
|
init_pair(7, COLOR_CYAN, -1);
|
||||||
init_pair(8, -1, -1);
|
init_pair(8, COLOR_WHITE, -1);
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@@ -351,7 +351,7 @@ curses_init_nhcolors(void)
|
|||||||
init_pair(1, COLOR_BLACK + 8, -1);
|
init_pair(1, COLOR_BLACK + 8, -1);
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
init_pair(9, COLOR_WHITE, -1);
|
init_pair(9, -1, -1);
|
||||||
init_pair(10, COLOR_RED + 8, -1);
|
init_pair(10, COLOR_RED + 8, -1);
|
||||||
init_pair(11, COLOR_GREEN + 8, -1);
|
init_pair(11, COLOR_GREEN + 8, -1);
|
||||||
init_pair(12, COLOR_YELLOW + 8, -1);
|
init_pair(12, COLOR_YELLOW + 8, -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user