MCPcopy Index your code
hub / github.com/NetHack/NetHack / tgetch

Function tgetch

sys/windows/consoletty.c:1088–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088int
1089tgetch(void)
1090{
1091 int mod;
1092 coord cc;
1093 DWORD count;
1094 uchar numberpad = iflags.num_pad;
1095
1096 really_move_cursor();
1097 if (iflags.debug_fuzzer)
1098 return randomkey();
1099#ifdef QWERTZ_SUPPORT
1100 if (gc.Cmd.swap_yz)
1101 numberpad |= 0x10;
1102#endif
1103
1104 return (program_state.done_hup)
1105 ? '\033'
1106 : keyboard_handling.pCheckInput(
1107 console.hConIn, &gbl_ir, &count, numberpad, 0, &mod, &cc);
1108}
1109
1110int
1111console_poskey(coordxy *x, coordxy *y, int *mod)

Callers

nothing calls this directly

Calls 2

really_move_cursorFunction · 0.85
randomkeyFunction · 0.85

Tested by

no test coverage detected