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

Function Gem_nhgetch

outdated/win/gem/wingem.c:962–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960extern void mar_update_value(void); /* wingem1.c */
961
962int
963Gem_nhgetch()
964{
965 int i;
966
967 mar_update_value();
968 i = tgetch();
969 if (!i)
970 i = '\033'; /* map NUL to ESC since nethack doesn't expect NUL */
971
972 return i;
973}
974
975/* Get a extended command in windowport specific way.
976 returns index of the ext_cmd or -1.

Callers

nothing calls this directly

Calls 2

mar_update_valueFunction · 0.85
tgetchFunction · 0.50

Tested by

no test coverage detected