From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: open console into binary mode ? Date: Tue, 28 Sep 1999 09:43:01 +0200 Organization: NetVision Israel Message-ID: References: <7slfup$m1f$1 AT fe2 DOT cs DOT interbusiness DOT it> <37effd99 DOT 9294507 AT news DOT freeuk DOT net> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 938504506 18990 199.203.121.2 (28 Sep 1999 07:41:46 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 28 Sep 1999 07:41:46 GMT X-Sender: eliz AT is In-Reply-To: <37effd99.9294507@news.freeuk.net> Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.