From 2b7ffea31612c16ab16735f6806195ab471ae409 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 7 Nov 2021 08:06:42 -0800 Subject: fix menu colors I had it switching to a dark background on me. --- src/lcurseslib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lcurseslib.c b/src/lcurseslib.c index be99512..0d9f604 100644 --- a/src/lcurseslib.c +++ b/src/lcurseslib.c @@ -29,11 +29,10 @@ void draw_string_on_menu(const char* s) { ++menu_column; } void draw_menu_item(const char* key, const char* name) { - attroff(A_REVERSE); - draw_string_on_menu(key); attron(A_REVERSE); - draw_string_on_menu(name); + draw_string_on_menu(key); attroff(A_REVERSE); + draw_string_on_menu(name); } void draw_menu (lua_State *L) { -- cgit 1.4.1-2-gfad0