Date: Sat, 9 Sep 1995 21:57:21 -0500 (CDT) From: Leroy Rakoski Subject: Pause Key To: djgpp AT sun DOT soe DOT clarkson DOT edu This may be more of a DOS interrupt question, but... Watcom C (DOS4GW) traps or lets you trap the Pause Key on extended keyboards. (look at doom, for ex).. I looked at Ralf Brown's excellent interrupt list, and it said pause has scancode 0xE1 going into INT 0x9 (IRQ1). How would you trap this in DJGPP (safely) and have it set a flag or call a function... (v2 preferred over v1.12!) i know how to trap SysReq - just hook int 0x15, ah=85. maybe the solution for pause would be to put in a hook at 0x15, ah=4f and test for 0xE1 and not return it to int 0x9 *** int 0x9 calls int 0x15, ah=4f with al= scan code, and cf set. if you do not want the key to be processed by 0x9, set cf cleared. you can even change scancodes into other scancodes!! *** would it be better to hook int 0x9 or 0x15 ah=4f? is there a better way?? thanx Lee Rakoski lrakoski AT isbe DOT state DOT il DOT us