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

Function yn_menuable_resp

src/cmd.c:5393–5399  ·  view source on GitHub ↗

can we use menu entries to respond to a query? */

Source from the content-addressed store, hash-verified

5391
5392/* can we use menu entries to respond to a query? */
5393staticfn boolean
5394yn_menuable_resp(const char *resp)
5395{
5396 return iflags.query_menu && iflags.window_inited
5397 && (resp == ynchars || resp == ynqchars || resp == ynaqchars
5398 || resp == rightleftchars || resp == hidespinchars);
5399}
5400
5401staticfn void
5402yn_func_menu_opt(winid win, char key, const char *text, char def)

Callers 1

yn_function_menuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected