support menucolor in addition to caller-supplied attribute */
| 1312 | |
| 1313 | /* support menucolor in addition to caller-supplied attribute */ |
| 1314 | static void |
| 1315 | toggle_menu_attr(boolean on, int color, int attr) |
| 1316 | { |
| 1317 | if (on) { |
| 1318 | term_start_attr(attr); |
| 1319 | if (color != NO_COLOR) |
| 1320 | term_start_color(color); |
| 1321 | } else { |
| 1322 | if (color != NO_COLOR) |
| 1323 | term_end_color(); |
| 1324 | term_end_attr(attr); |
| 1325 | } |
| 1326 | } |
| 1327 | |
| 1328 | static void |
| 1329 | process_menu_window(winid window, struct WinDesc *cw) |
no test coverage detected