GETBYTE

Syntax

GETBYTE

Explanation

GETBYTE outputs the ASCII value of the first character in the input stream. If no character is waiting to be read, GETBYTE waits for input from the keyboard.

See EOF, GETBYTE.NO.ECHO, and PUTBYTE.

Examples

The following procedure prints all input typed until the Enter key is pressed.

TO WAIT.FOR.ENTER.KEY


 * TEST GETBYTE = 13


 * IFFALSE [WAIT.FOR.ENTER.KEY]

END

? WAIT.FOR.ENTER.KEY

I WILL PRESS THE ENTER KEY NOW