MCPcopy Create free account
hub / github.com/NetHack/NetHack / curses_alert_win_border

Function curses_alert_win_border

win/curses/curswins.c:723–737  ·  view source on GitHub ↗

Change colour of window border to alert player to something */

Source from the content-addressed store, hash-verified

721
722/* Change colour of window border to alert player to something */
723void
724curses_alert_win_border(winid wid, boolean onoff)
725{
726 WINDOW *win = curses_get_nhwin(wid);
727
728 if (!win || !curses_window_has_border(wid))
729 return;
730 curses_set_wid_colors(wid, NULL);
731 if (onoff)
732 curses_toggle_color_attr(win, ALERT_BORDER_COLOR, NONE, ON);
733 box(win, 0, 0);
734 if (onoff)
735 curses_toggle_color_attr(win, ALERT_BORDER_COLOR, NONE, OFF);
736 wnoutrefresh(win);
737}
738
739
740void

Callers 1

Calls 4

curses_get_nhwinFunction · 0.85
curses_window_has_borderFunction · 0.85
curses_set_wid_colorsFunction · 0.85
curses_toggle_color_attrFunction · 0.85

Tested by

no test coverage detected