INCHR inputs a single character from the keyboard.
INCHR variable name
INCHR["PROMPT STRING";] variable name
10 INCHR "DECIMAL VALUE"; A 20 PRINT A 30 GOTO 10
DECIMAL VALUE ?A 65 DECIMAL VALUE ?B 66 etc.
INCHR does not wait for ENTER to be pressed. A prompt message is displayed as with INPUT. Only one variable may be entered. The variable is set to the decimal value of the character, as detailed in section ASCII Character Set.
A comma following INCHR or the prompt message will suppress the prompt character '?'. The comma replaces the semicolon in the syntax.
No values are returned for SHIFT, HELP, CONTROL or POWER keys, although these function normally during INCHR.
'Escape' cannot be used to return to Basic from an INCHR loop, since it simply returns the value 27!