home *** CD-ROM | disk | FTP | other *** search
- \ Balraj Sidhu Set: 14D4
- \ Comp 462 - Forth
- \ Date: April 7, 1990
- \ Problem 3.15
-
- : key_test ( -- )
- begin cr key
- dup control m = \ control m is return key
- if drop exit then \ exit infinite loop if pressed
- dup . emit again ; \ otherwise show key pressed
-
- COMMENT:
-
- When a function key is pressed the scan code + 128 of the function key
- is displayed, plus the extended IBM ACII character for the scan code + 128.
-
- COMMENT;
-
-