delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/09/09/06:43:56

Via: uk.ac.southampton; Thu, 9 Sep 1993 11:23:13 +0100
From: Chris Boucher <C DOT C DOT Boucher AT southampton DOT ac DOT uk>
Date: Thu, 9 Sep 93 11:07:54 BST
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Subject: Re: backspace <--> delete

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019