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

@@ -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);