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

Function Gem_end_menu

outdated/win/gem/wingem.c:790–805  ·  view source on GitHub ↗

* End a menu in this window, window must a type NHW_MENU. * We assign the keyboard accelerators as needed. */

(window, prompt)

Source from the content-addressed store, hash-verified

788 * We assign the keyboard accelerators as needed.
789 */
790void
791Gem_end_menu(window, prompt)
792winid window; /* menu to use */
793const char *prompt; /* prompt to for menu */
794{
795 if (window == WIN_ERR || mar_hol_win_type(window) != NHW_MENU)
796 panic(winpanicstr, window);
797
798 /* Reverse the list so that items are in correct order. */
799 mar_reverse_menu();
800
801 /* Put the prompt at the beginning of the menu. */
802 mar_set_menu_title(prompt);
803
804 mar_set_accelerators();
805}
806
807int
808Gem_select_menu(window, how, menu_list)

Callers 1

Gem_get_ext_cmdFunction · 0.85

Calls 5

mar_hol_win_typeFunction · 0.85
mar_reverse_menuFunction · 0.85
mar_set_menu_titleFunction · 0.85
mar_set_acceleratorsFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected