From: Warren Gill Subject: Re: catching ctrl_c in djgpp To: dj AT ctron DOT com Date: Fri, 15 Jul 94 9:43:21 CDT Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Mailer: Elm [revision: 70.85] > > > 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. > I have also successfully written a hardware interrupt handler that will let you intercept ANY key (except Ctrl-Alt-Delete). The beauty of it is you don't need any keyboard recognition in your main loop, so it's very fast. -- ____________ --------------------------------------------------------| .:. ,;''|-- Warren Gill |.:' :.:' | Technical Services Engineer Unison Software 512/478-0611 811 Barton Springs Road warren_gill AT unison DOT com Austin, Texas 78704 USA ---------------"Semiconductors are part-time musicians"-----------------