home *** CD-ROM | disk | FTP | other *** search
- {$I cpmswitc.inc}
-
- {--------------------------------------------------------------------------
-
- KBTEST.PAS (Demonstrating keyboard handling through MTPopup unit)
-
- This program requires the CPMULTI Multitasking Toolkit and Turbo Pascal
- 5.0 or later.
-
- January 1994
-
- Copyright (C) 1994 (USA) Copyright (C) 1989-1994
- Hypermetrics Christian Philipps Software-Technik
- PO Box 9700 Suite 363 Duesseldorfer Str. 316
- Austin, TX 78758-9700 D-47447 Moers
- Germany
-
- For each key pressed by the user, all available information is
- displayed. Pressing ESCape will end the program.
-
- ---------------------------------------------------------------------------}
-
- program KBTest;
-
- uses DOS, CRT, MTPopUp;
-
- var C : KeyType;
-
- begin
- ClrScr;
- Writeln('ESC to end...'^M^J);
- repeat
- C.LongKey := GetKey;
- with C do
- begin
- Writeln('Char=',c,' Scan=',scan,' Shift-state=',ShiftStatus);
- Writeln('LongInt = ',LongKey,' LongHex = ',LongIntToHex(LongKey));
- end
- until C.C=#27;
- end.
-