Reading ctrl-c's without crashing program
- Posted by Michael Packard <lgp at EXO.COM> Feb 11, 1997
- 1125 views
Hi, I need to make OidZone not drop to dos on a ctrl-C. I've been doing get_keys() for the regular keyboard, And Jacques's keypad() thing for the ctrl,alt,shift keys. ctrl-C kills get_key(). I tried using Jacques GetScanCode() but it doesn't work on 2 of my 3 machines. (both dx2-66's) works fine on my p166. His keytest.ex also doesn't work on those machines, It correctly shows the shift ctrl and alt keys, but not any other key, and I can't get out of it without rebooting! I looked at Dave Cuny's keys.e, but he's looking at the mouse and a bunch of other stuff I don't need along with the keyboard, and it's way too slow to check things I don't need. I need something lightning quick that will read the scan codes or whatever that works on all machines. I can't have even one extra if doing something I don't absolutely need. I need something that gives me a number that doesn't change with the shift,alt or ctrl, or crash on a crtl-c. I need this yesterday, so if any of you can help, it would be...um...helpful. Thanx. Michael Packard Lord Generic Productions lgp at exo.com http://exo.com/~lgp A Crash Course in Game Design and Production http://exo.com/~lgp/euphoria