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


Purpose   Reads a character from the keyboard or mouse.

Decln.    GetKey:char;

Returns   Char

Remarks   This is the main function in the KeyTTT5 unit and is used
          throughout the Toolkit.

          This is a fully functional replacement for Turbo's internal
          ReadKey command. Both typed characters and mouse activity are
          returned. Refer to the appendix for a full list of all the
          character codes that are returned.

Example

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

The character code for F10 is #196. (See Appendix.)

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