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

Function disable_ctrlP

outdated/sys/os2/os2.c:311–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void
312disable_ctrlP()
313{
314 KBDINFO KbdInfo;
315 HKBD KbdHandle = 0;
316
317 if (!iflags.rawio)
318 return;
319 KbdInfo.cb = sizeof(KbdInfo);
320 KbdGetStatus(&KbdInfo, KbdHandle);
321 KbdInfo.fsMask &= 0xFFF7; /* ASCII off */
322 KbdInfo.fsMask |= 0x0004; /* BINARY on */
323 KbdSetStatus(&KbdInfo, KbdHandle);
324}
325
326void
327enable_ctrlP()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected