Date: Mon, 16 May 94 19:09:52 -0400 From: dj AT ctron DOT com (DJ Delorie) To: shc AT netcom DOT com Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Trapping Ctrl-C > I installed djgpp this weekend & have been happily porting applications > with very few problems. Some of these apps, however, need a way to trap > ctrl-c so they can clean up before exit. Go32 seems to catch this, itself, > and bails with a comment. Under Unix & under other Dos compilers, I've > just used signal() to catch SIGINT. V2.0 has signals working, although lots of other stuff doesn't yet. > I've looked for a faq with an answer to this but can't find one. Any ideas? > Or if this is something waiting to be worked on, any pointers on where to > start? I have lots of Unix experience but no idea how Dos extenders work > (& I'd rather learn as little as possible to get the job done :-). If you call _go32_want_ctrl_break(), you can *poll* for ^C (see samples/dpmi/ctrlbrk.c). You can't do much in an interrupt handler or real-mode callback anyway, so polling is about it for now.