🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #724

Re: How can I silence a ^C interrupt?

#724
From: Richard Hancock
Date: Tue, 14 Apr 1992 12:28
17 lines
1342 bytes
/ hpopd:comp.os.msdos.programmer / halvers@procyon.crd.ge.com (peter c halverson) /  6:55 pm  Apr  9, 1992 /

>I'm trying to use Borland's "ctrlbrk" function to handle ^C/^Break events
>(setting a flag that another routine eventually notices), and it seems to
>work as advertised, except that I can't seem to suppress the echo of
>"^C<CR>" to the screen (which trashes the display).  Obviously there's some
>chunk of code outside the default ^C handler which is doing this echoing
>(the BIOS keystroke handler, maybe?), but I thought I'd check before trying
>to hunt it down myself.  Any suggestions?

To quote an old DOS reference manual :- "If the Ctrl-Break interrupts
functions 9 or 10, buffered I/O, then C, carriage-return, and linefeed are
output."

This implies that you will need to make sure that you do not use buffered
I/O to/from the console when that buffering is performed by DOS via Int 21H,
functions 9 or 10.
Technical Details
Message-ID: <37390028@hpopd.pwd.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!otter.hpl.hp.com!hpopd!richardh
References: <1992Apr9.175502.2526@crd.ge.com>

Show Full Headers
Complete Article Headers
From: richardh@hpopd.pwd.hp.com (Richard Hancock)
Date: Tue, 14 Apr 1992 12:28:48 GMT
Subject: Re: How can I silence a ^C interrupt?
Message-ID: <37390028@hpopd.pwd.hp.com>
Organization: The Duffer of St. George
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!otter.hpl.hp.com!hpopd!richardh
Newsgroups: comp.os.msdos.programmer
References: <1992Apr9.175502.2526@crd.ge.com>
Lines: 17