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

Function X11_yn_function

win/X11/winX.c:2465–2474  ·  view source on GitHub ↗

X11-specific edition of yn_function(), the routine called by the core to show a prompt and get a single key answer, often 'y' vs 'n' */

Source from the content-addressed store, hash-verified

2463/* X11-specific edition of yn_function(), the routine called by the core
2464 to show a prompt and get a single key answer, often 'y' vs 'n' */
2465char
2466X11_yn_function(
2467 const char *ques, /* prompt text */
2468 const char *choices, /* allowed response chars; any char if Null */
2469 char def) /* default if user hits <space> or <return> */
2470{
2471 char res = X11_yn_function_core(ques, choices, def, YN_NORMAL);
2472
2473 return res;
2474}
2475
2476/* used when processing window-capability-specific run-time options;
2477 we support toggling tiles on and off via iflags.wc_tiled_map */

Callers

nothing calls this directly

Calls 1

X11_yn_function_coreFunction · 0.85

Tested by

no test coverage detected