CRT Documentation: Reference

ReadKey

[This procedure has changed from its original DOS version.]

Reads a character from the keyboard.

function ReadKey: AnsiChar;

Parameters

This function has no parameters.

Return Values

Returns a character or an extended scan code.

Remarks

The character is not echoed to the screen. The Delphi version of ReadKey returns an AnsiChar which is fundamentally the same as the Turbo Pascal char type.

See Also

Crt Overview, KeyPressed