delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/15/09:16:18

Date: Fri, 15 Jul 94 09:06:43 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: gary AT umnstat DOT stat DOT umn DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: catching ctrl_c in djgpp

> djgpp (bless it's soul) lets me ignore the 64K/640K stuff I've had to
> accept in DOS.  But it quits on ctrl_c.  A little surgery on the go32
> source (control.c and exhndler.c) lets me go on after a control_c has been
> hit, but I want to notify the stat package that the interrupt was hit.

Use _go32_was_ctrl_break_hit() in a polling loop in *your*
application.  It doesn't check ^C, but it checks Ctrl-Break.  See
samples/dpmi/ctrlbrk.c.


- Raw text -


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