[Next] [Up] [Previous]
Next: Sound Up: Procedures and Functions Previous: KeyPressed

ReadKey

   

Declaration:

Function ReadKey : Char;

Description:

The ReadKey function reads 1 key from the keyboard buffer, and returns this. If an extended or function key has been pressed, then the zero ASCII code is returned. You can then read the scan code of the key with a second ReadKey call.

Remark. Key mappings under Linux can cause the wrong key to be reported by ReadKey, so caution is needed when using ReadKey.

Errors:

None.

See also:

KeyPressed



Michael Van Canneyt
Thu Dec 12 15:44:18 MET 1996