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

Function DOSgetch

outdated/sys/os2/os2.c:158–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static char
159DOSgetch()
160{
161 KBDKEYINFO CharData;
162 USHORT IOWait = 0;
163 HKBD KbdHandle = 0;
164
165 KbdCharIn(&CharData, IOWait, KbdHandle);
166 if (CharData.chChar == 0) { /* an extended code -- not yet supported */
167 KbdCharIn(&CharData, IOWait, KbdHandle); /* eat the next character */
168 CharData.chChar = 0; /* and return a 0 */
169 }
170 return (CharData.chChar);
171}
172
173char
174switchar()

Callers 1

tgetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected