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

Function disable_ctrlP

sys/msdos/msdos.c:484–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482static unsigned int old_stdin, old_stdout;
483
484void
485disable_ctrlP(void)
486{
487 if (!iflags.rawio)
488 return;
489
490 old_stdin = dos_ioctl(STDIN, GETBITS, 0);
491 old_stdout = dos_ioctl(STDOUT, GETBITS, 0);
492 if (old_stdin & DEVICE)
493 dos_ioctl(STDIN, SETBITS, old_stdin | RAW);
494 if (old_stdout & DEVICE)
495 dos_ioctl(STDOUT, SETBITS, old_stdout | RAW);
496 return;
497}
498
499void
500enable_ctrlP(void)

Callers 1

getttyFunction · 0.50

Calls 1

dos_ioctlFunction · 0.85

Tested by

no test coverage detected