GETBYTE.NO.ECHO

Syntax

GETBYTE.NO.ECHO

Explanation

GETBYTE.NO.ECHO outputs the ASCII value of the first character in the input stream, but does not print it on the screen. If no character is waiting to be read, GETBYTE.NO.ECHO waits for input from keyboard.

See EOF, GETBYTE, and PUTBYTE.

Example

The procedure below reads in characters without echoing them to the screen and then prints out the next character in the ASCII set. It ends on Q (which is ASCII 81).

TO CONFUSE


 * LABEL "TOP


 * MAKE "A GETBYTE.NO.ECHO


 * IF :A = 81 THEN STOP


 * PUTBYTE :A + 1


 * GO "TOP

END