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

Function pgetchar

src/cmd.c:444–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444char
445pgetchar(void) /* courtesy of aeb@cwi.nl */
446{
447 int ch = '\0';
448
449 if (iflags.debug_fuzzer)
450 return randomkey();
451 ch = nhgetch();
452 return (char) ch;
453}
454
455/* '#' or whatever has been bound to doextcmd() in its place */
456char

Callers 7

hooked_tty_getlinFunction · 0.85
curses_ext_cmdFunction · 0.85
VA_DECLFunction · 0.85
getreturnFunction · 0.85
allmain.cFile · 0.85
handler_rebind_keys_addFunction · 0.85
readchar_coreFunction · 0.85

Calls 1

randomkeyFunction · 0.85

Tested by

no test coverage detected