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

Function curses_ctrl_nhwindow

win/curses/cursmain.c:813–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813win_request_info *
814curses_ctrl_nhwindow(
815 winid window UNUSED,
816 int request,
817 win_request_info *wri)
818{
819 int attr;
820
821 if (!wri)
822 return (win_request_info *) 0;
823
824 switch (request) {
825 case set_mode:
826 case request_settings:
827 break;
828 case set_menu_promptstyle:
829 curses_menu_promptstyle.color = wri->fromcore.menu_promptstyle.color;
830 if (curses_menu_promptstyle.color == NO_COLOR)
831 curses_menu_promptstyle.color = NONE;
832 attr = wri->fromcore.menu_promptstyle.attr;
833 curses_menu_promptstyle.attr = curses_convert_attr(attr);;
834 break;
835 default:
836 break;
837 }
838 return wri;
839}
840
841/*
842mark_synch() -- Don't go beyond this point in I/O on any channel until

Callers

nothing calls this directly

Calls 1

curses_convert_attrFunction · 0.85

Tested by

no test coverage detected