delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/03/01:42:49

Date: Wed, 3 Mar 1999 08:37:02 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: SIGINT handling with CTRL-C
In-Reply-To: <gunaalubzrpbz.f7zgwr2.pminews@24.3.128.71>
Message-ID: <Pine.SUN.3.91.990303083643.7979C-100000@is>
MIME-Version: 1.0
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).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019