MCPcopy Index your code
hub / github.com/NetHack/NetHack / toggle_menu_attr

Function toggle_menu_attr

win/tty/wintty.c:1314–1326  ·  view source on GitHub ↗

support menucolor in addition to caller-supplied attribute */

Source from the content-addressed store, hash-verified

1312
1313/* support menucolor in addition to caller-supplied attribute */
1314static void
1315toggle_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
1328static void
1329process_menu_window(winid window, struct WinDesc *cw)

Callers 1

process_menu_windowFunction · 0.85

Calls 4

term_start_attrFunction · 0.70
term_start_colorFunction · 0.70
term_end_colorFunction · 0.70
term_end_attrFunction · 0.70

Tested by

no test coverage detected