From: "Edmund Horner" Newsgroups: comp.os.msdos.djgpp References: <8ps0im$f84$1 AT mulga DOT cs DOT mu DOT OZ DOT AU> Subject: Re: keyboard int 9 and djgpp Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Paradise Net Message-ID: <969019724.738053@shelley.paradise.net.nz> Cache-Post-Path: shelley.paradise.net.nz!unknown AT 203-96-159-184 DOT tnt5 DOT paradise DOT net DOT nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Sat, 16 Sep 2000 00:11:06 +1200 NNTP-Posting-Host: 203.96.152.26 X-Complaints-To: newsadmin AT xtra DOT co DOT nz X-Trace: news.xtra.co.nz 969019725 203.96.152.26 (Sat, 16 Sep 2000 00:08:45 NZST) NNTP-Posting-Date: Sat, 16 Sep 2000 00:08:45 NZST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm not 100% sure, but I think CTRL-C keypresses are handled under another interrupt... you might like to look under signals... My advice is to set the SIGINT signal to a function that doesn't do anything. SIGINT is generated when CTRL-C is pressed... But I am not sure how this will interact with your keyboard handler. "Alistair_P SHILTON" wrote in message news:8ps0im$f84$1 AT mulga DOT cs DOT mu DOT OZ DOT AU... > I've recently written (as part of an emulator) a keyboard handling routine. > It is a simple assembly program that hooks into interupt 9 and > stores a key up/down (state) map in upper (non-visible) video memory. > Modifier keys are passed to the old int9 handler, but all other keys are > blocked. My program (in DJGPP) spawns the handler and uses the up/down > map for keyboard emulation. > > What I don't understand is how come control-c still works (ie. stops the > program!). I've tested the handler without djgpp, and control-c is disabled > ok, so why/how does djgpp allow it to continue operating even though the > keystroke is (should be) blocked? Am I missing something here? Any pointers > would be greatly appreciated. > > > ---------------------------------------------------- > > thanks > > Alistair Shilton > > http://www.ee.mu.oz.au/pgrad/apsh > > >