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

Function tgetch

outdated/sys/atari/tos.c:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31boolean colors_changed = FALSE;
32
33int
34tgetch()
35{
36 char ch;
37
38 /* BIOSgetch can use the numeric key pad on IBM compatibles. */
39 if (iflags.BIOS)
40 ch = BIOSgetch();
41 else
42 ch = DOSgetch();
43 return ((ch == '\r') ? '\n' : ch);
44}
45
46/*
47 * Keyboard translation tables.

Callers

nothing calls this directly

Calls 2

BIOSgetchFunction · 0.70
DOSgetchFunction · 0.70

Tested by

no test coverage detected