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:
Kartik K. Agaram 2021-12-25 14:59:18 -08:00
parent ee66da41f5
commit 526d37e4ac
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ void draw_menu_item(const char* key, const char* name) {
}
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)
mvaddch(LINES-1, x, ' ');
menu_column = 2;