| 482 | static unsigned int old_stdin, old_stdout; |
| 483 | |
| 484 | void |
| 485 | disable_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 | |
| 499 | void |
| 500 | enable_ctrlP(void) |