Next: , Previous: , Up: Status Funcs   [Contents][Index]


15.4.5 !readkey

Waits for, echos, and returns a long code for the next pressed key. Ordinary and control characters yield their ASCII code. Escape sequences yield larger numbers:

ESC char

27 + 256*char

ESC [ char

256*char

ESC [ number char

256*char + 256*256*number

See also: !readkeyne