Date: Wed, 3 Mar 1999 08:37:02 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: SIGINT handling with CTRL-C In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Tue, 2 Mar 1999, Mike Ruskai wrote: > >On what operating system? DOS? Windows 3.X? Windows 9X? Windows NT? > >Linux/DOSEmu? > > Your question prompted me to test, and it appears to only fail in an OS/2 > VDM. It figures. ^C handling is one of the dark corners of DOS emulators. Accidentally, does CTRL-Break call your handler on OS/2? > Under Win95, the ^C is displayed, but the handler does execute. Same > under PC-DOS 7 with CWSDPMI. The display of ^C is normal DOS behavior. If you want to avoid that, make your handler gobble the character in the keyboard buffer, if there is any (CTRL-Break does NOT leave any characters there, but does generate SIGINT).