key ( -- c )
published: 29 January 2023 / updated 30 January 2023
vocabulary: forth
Waits for a key to be pressed. Pressing a key returns its ASCII code.
Example:
key . \ display 97 if key "a" is active key . \ affiche 65 if key "A" is active
published: 29 January 2023 / updated 30 January 2023
vocabulary: forth
Waits for a key to be pressed. Pressing a key returns its ASCII code.
key . \ display 97 if key "a" is active key . \ affiche 65 if key "A" is active