From: greenaum AT BOLLOCKSyahoo DOT co DOT uk Newsgroups: comp.os.msdos.djgpp Subject: Re: open console into binary mode ? Organization: Rossum's Universal Robots Message-ID: <37effd99.9294507@news.freeuk.net> References: <7slfup$m1f$1 AT fe2 DOT cs DOT interbusiness DOT it> X-Newsreader: Forte Agent 1.5/32.452 X-No-Archive: yes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 23 Date: Mon, 27 Sep 1999 23:28:30 GMT NNTP-Posting-Host: 212.126.145.183 X-Complaints-To: abuse AT freeuk DOT net X-Trace: nnrp3.clara.net 938474910 212.126.145.183 (Tue, 28 Sep 1999 00:28:30 BST) NNTP-Posting-Date: Tue, 28 Sep 1999 00:28:30 BST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 DOS console sort of stems from the Unix and CP/M consoles. If you send it control characters, characters below 32, it will perform actions just like a terminal would, eg printing character 7 will sound a beep. 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. That's probably what's happening here. You're sending an XOFF to the screen, so you need to send an XON after. Perhaps you can press one of the keys (I forget which is which) yourself, but the best thing, is just not to send binary to the console. It's stupid. ------------------------------------------------------------------------ Why pamper life's complexity, when the leather runs smooth on the passenger seee-eee-aaat? - - - - - - - - greenaum AT yahoo DOT co DOT uk