Sign in Join
FPDoc Onlineexperiment

readkey function

In unit WinCRT

Read a key from the keyboard.

Declaration

pascal
function readkey: AnsiChar

Function result

The pressed key.

Description

ReadKey reads a key from the keyboard, and returns the ASCII value of the key, or the scancode of the key in case it is a special key.

The function waits until a key is pressed.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.