diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-07 10:29:29 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-07 10:29:29 -0800 |
commit | ef9c42084d42ab3c2a7fff3b0b9685cd8c61f171 (patch) | |
tree | a9b64d45757bd74a06dd336c5a3e49f515c78e88 /src/lcurseslib.c | |
parent | d5eb2fb7529ff23117e5ac7fdcf63c1a20d33077 (diff) | |
download | teliva-ef9c42084d42ab3c2a7fff3b0b9685cd8c61f171.tar.gz |
switch menu bars to reverse video
Diffstat (limited to 'src/lcurseslib.c')
-rw-r--r-- | src/lcurseslib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c index 0d9f604..f1a5849 100644 --- a/src/lcurseslib.c +++ b/src/lcurseslib.c @@ -29,14 +29,14 @@ void draw_string_on_menu(const char* s) { ++menu_column; } void draw_menu_item(const char* key, const char* name) { - attron(A_REVERSE); - draw_string_on_menu(key); attroff(A_REVERSE); + draw_string_on_menu(key); + attron(A_REVERSE); draw_string_on_menu(name); } void draw_menu (lua_State *L) { - attron(A_BOLD); + attron(A_BOLD|A_REVERSE); for (int x = 0; x < COLS; ++x) mvaddch(LINES-1, x, ' '); menu_column = 2; @@ -51,7 +51,7 @@ void draw_menu (lua_State *L) { draw_menu_item(lua_tostring(L, -2), lua_tostring(L, -1)); lua_pop(L, 1); - attroff(A_BOLD); + attroff(A_BOLD|A_REVERSE); } |