Key and EKey 
Author Message
 Key and EKey

Quote:
Mitch Bradley writes:
> My current thinking is that EKEY could be eliminated, and KEY should
> be defined to return a *number*, not a character.
> There should be a constant (or perhaps an environment query) for
> MAX-CHARACTER .  If the number returned by KEY is less than MAX-CHARACTER# ,
> then it is a character in the implementation-defined character set.  If the
> number is outside that range, it represents an event (function key, whatever)
> in an implementation-defined event space.  The crucial point is that the
> set of valid characters is well-defined subset of the set of events, and
> it is possible for a program to test whether or not the thing returned
> by KEY is or is not a character.  Presumably, a standard program would
> discard non-character events, or pass them to a system-specific event
> handler routine.

Mitch,

      This sounds like such a good idea that there is simply no chance of
getting it past the TC !

Peter Knaggs
+-----------------------------+-----------------------------------------------+




!-----------------------------+-----------------------------------------------!
! It is not enough to do the right thing; one must also do it the right way.  !
+-----------------------------------------------------------------------------+



Tue, 16 Nov 1993 01:40:56 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. KEY and EKEY

2. portable definitions for KEY and EKEY?

3. KEY and EKEY

4. KEY , EKEY , AND EKEY>CHAR

5. IDLE-EKEY?

6. EKEY in gforth in DOS

7. EKEY in gforth for linux?

8. EKEY>CHAR in Win32Forth

9. EKEY and double numbers

10. EKEY part 3 of 3

11. EKEY part 2 of 3

12. EKEY part 1 of 3

 

 
Powered by phpBB® Forum Software