key  ( -- char )

published: 9 January 2022 / updated 16 February 2022

Lire cette page en français

 

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 

Legal: site web personnel sans commerce / personal site without seling