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

Function yn_func_menu_opt

src/cmd.c:5401–5413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5399}
5400
5401staticfn void
5402yn_func_menu_opt(winid win, char key, const char *text, char def)
5403{
5404 anything any;
5405
5406 any = cg.zeroany;
5407 any.a_char = key;
5408 add_menu(win, &nul_glyphinfo, &any, key, 0,
5409 ATR_NONE, NO_COLOR, text,
5410 (def == key) ? MENU_ITEMFLAGS_SELECTED
5411 : MENU_ITEMFLAGS_NONE);
5412
5413}
5414
5415/* use a menu to ask a specific response to a query.
5416 returns TRUE if the menu was shown to the user.

Callers 1

yn_function_menuFunction · 0.85

Calls 1

add_menuFunction · 0.85

Tested by

no test coverage detected