Mail Archives: djgpp/1993/09/09/06:43:56
John E. Davis writes:
> I am compiling a program with djgpp/gcc and so far, all has gone well.
> However, I would like to distinguish between pressing the ^H key and the
> backspace key. Can I do this? In addition, I want to distinguish between
> spacebar and Control-spacebar.
The trick is to look at the keyboard modifiers (INT 16 AH=02) every time
you read in a key - if you get a ^H and the control key isn't down then
it was backspace.
Chris.
--
Dr Chris Boucher Tel: (+44 703) 592300
Signal Processing and Control Group Fax: (+44 703) 593033
Institute of Sound and Vibration Research Email: ccb AT soton DOT ac DOT uk
University of Southampton, Southampton S09 5NH, England
- Raw text -