Mail Archives: djgpp/1999/09/28/06:48:35
On Mon, 27 Sep 1999 greenaum AT BOLLOCKSyahoo DOT co DOT uk wrote:
> Like Damien says, you can't send binary to the DOS console. If you do,
> the console driver will interpret it however it's written to interpret
> it.
The console device can be put into the raw mode, and then the special
mening of the control characters is disabled. In DJGPP, switching the
handle connected to the console into binary mode has the side effect
of switching the console device into raw mode.
> Anyway, Control-Q and Control-S are XON and XOFF in the ASCII
> standard, and these cause the terminal to stop recieving incoming
> data, to freeze the screen.
This is true on Unix, but not on DOS. Writing Ctrl-S to the console
(as opposed to *pressing* Ctrl-S) doesn't have any effect on DOS.
Also, Ctrl-Q doesn't have any special effect at all, even if you press
it. Instead, after pressing Ctrl-S, _any_ keypress, even another
Ctrl-S, will resume the paused program.
- Raw text -