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

Function readchar

src/cmd.c:5275–5284  ·  view source on GitHub ↗

get a character */

Source from the content-addressed store, hash-verified

5273
5274/* get a character */
5275char
5276readchar(void)
5277{
5278 char ch;
5279 coordxy x = u.ux, y = u.uy;
5280 int mod = 0;
5281
5282 ch = readchar_core(&x, &y, &mod);
5283 return ch;
5284}
5285
5286/* used by getpos() to accept mouse input as well as keyboard input */
5287char

Callers 7

tty_yn_functionFunction · 0.85
mswin_yn_functionFunction · 0.85
getobjFunction · 0.85
getdirFunction · 0.85
get_countFunction · 0.85
parseFunction · 0.85
topl_yn_functionFunction · 0.85

Calls 1

readchar_coreFunction · 0.85

Tested by

no test coverage detected