Mail Archives: djgpp/1999/03/03/01:42:49
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 -