[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetKey                                                          KeyTTT



Purpose   To read a character from the keyboard.

Declaration    GetKey:char;

Returns   Char

Uses CRT, DOS, KeyTTT.

Remarks   This is the main function in the KeyTTT unit and is called
          throughout the Toolkit.

          This is a fully functional replacement for Turbo's internal
          ReadKey command. Refer to Appendix B for a full list of all
          the character codes that are returned.



Example


               USES CRT, FASTTTT, DOS, KEYTTT;
               VAR CH : CHAR;
               BEGIN
                 WRITECENTER(25,LIGHTCYAN,BLUE,'PRESS F10 TO CONTINUE');
                 CH := GETKEY;
                 IF CH <> #196 THEN
                    HALT;
               END.


The code for F10 is #196, see appendix B.

See Also: DelayKey
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson