fix menu colors in all color schemes
It looks like attron doesn't actually enable colors near 256, even though https://linux.die.net/man/3/attron suggests it does. > COLOR_PAIR values can only be OR'd with attributes if the pair > number is less than 256.
This commit is contained in:
parent
ee66da41f5
commit
526d37e4ac
|
@ -32,7 +32,8 @@ void draw_menu_item(const char* key, const char* name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void draw_menu(lua_State* L) {
|
static void draw_menu(lua_State* L) {
|
||||||
attron(A_BOLD|A_REVERSE|COLOR_PAIR(COLOR_PAIR_MENU));
|
attron(A_BOLD|A_REVERSE);
|
||||||
|
color_set(COLOR_PAIR_MENU, NULL);
|
||||||
for (int x = 0; x < COLS; ++x)
|
for (int x = 0; x < COLS; ++x)
|
||||||
mvaddch(LINES-1, x, ' ');
|
mvaddch(LINES-1, x, ' ');
|
||||||
menu_column = 2;
|
menu_column = 2;
|
||||||
|
|
Loading…
Reference in New Issue