-
Notifications
You must be signed in to change notification settings - Fork 0
INKEYS
Andrew Owen edited this page May 30, 2023
·
1 revision
key = INKEY$ [ #file_num]
Returns one character from the stream file_num. If no stream is specified, returns one key-press from the keyboard buffer. If the keyboard buffer is empty, returns the empty string. Otherwise, the return value is a one-character string holding the e-ASCII code of the pressed key.
When a function key F1 to F15 is pressed, INKEY$
will return the letters of the associated macro unless it's been set to empty with the KEY
statement, in
which case it returns the e-ASCII code for the function key.
- Press
RETURN
to return to this menu. - Enter the name of a
TOPIC
to display it. - Enter
EXIT
to return to BASIC.
Choose from the following topics: