ask_get_one_keystroke_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== ASK (get one keystroke) ====== | |
ASK
ASK reads a single keystroke from the keyboard buffer. Program execution stops to wait for a keystroke. If there is already a keystroke in the keyboard buffer, ASK gets one keystroke without waiting. The ASK statement also allows any TIMER attribute events to generate and cycle their own ACCEPT loop. This means any batch processing code can allow other threads to execute their TIMER attribute tasks during the batch process.
Example:
ASK !Wait for a keystroke
LOOP WHILE KEYBOARD() !Empty the keyboard buffer
ASK !without processing keystrokes
END
See Also:
ask_get_one_keystroke_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1