www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/30/09:08:52

Date: Thu, 30 Mar 1995 14:57:20 +0200 (MET DST)
From: Ulrich Leodolter <ulrich AT lab1 DOT psy DOT univie DOT ac DOT at>
To: DJGPP <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: Want Ctrl-C hits ?

First of all, I'm using DJGPP 1.12m4.
I have tried to intercept Ctrl-C and Ctrl-Break hits with:

	setcbrk(0);
	_go32_want_ctrl_break(1);

The above code works for Ctrl-Break hits in dpmi and non-dpmi mode,
but an Ctrl-C hits simply aborts the program.

non-dpmi:	Ctrl-C Hit!  Stopped at address ....
dpmi:		<no message>

What's wrong with the above code ?
 _____________________________________________________
|                                                     |
| Ulrich Leodolter                                    |
| e-mail: ulrich AT lab1 DOT psy DOT univie DOT ac DOT at                |
|_____________________________________________________|

- Raw text -


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