more menu header tweaking re options
<color> off: map, menu items, menu headings, menu prompt/title all, everything should have color suppressed. <curses guicolor> on: map, menu items, menu headings, menu prompt/title can all feature color, as can menu borders, menu-selector letters. off: map, menu headings, menu prompt and menu items (menucolors on) can still feature color, but all other non-map features such as menu borders, menu-selector letters will not have color. <menucolors> on: menu items can have colors if they match one of the regex in config file; menu headings, menu prompt can also be in color (based on menu_headings option). off: menu items won't have colors, but menu headings, menu prompt still will feature colors (based on menu_headings option); those are not impacted by turning off menucolors.
This commit is contained in:
@@ -1209,10 +1209,10 @@ menu_display_page(
|
||||
|
||||
for (count = 0; count < num_lines; count++) {
|
||||
tmpstr = curses_break_str(menu->prompt, menu->width, count + 1);
|
||||
curses_toggle_color_attr(win, curses_menu_promptstyle.color,
|
||||
curses_menu_color_attr(win, curses_menu_promptstyle.color,
|
||||
curses_menu_promptstyle.attr, ON);
|
||||
mvwprintw(win, count + 1, 1, "%s", tmpstr);
|
||||
curses_toggle_color_attr(win, curses_menu_promptstyle.color,
|
||||
curses_menu_color_attr(win, curses_menu_promptstyle.color,
|
||||
curses_menu_promptstyle.attr, OFF);
|
||||
free(tmpstr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user