DISCARD
Syntax DISCARD
(DISCARD channel) 

Explanation DISCARD removes all pending input from the current input stream. The optional input is the channel number whose input is to be discarded. Channel 0 is the keyboard.

DISCARD moves the current position behind the last character of a disk file. DISCARD is most convenient for serial communication channels and the keyboard.

See also STANDARD.INPUT and OPEN.PORT.

Example WAIT 1000 MAKE "CH READCHAR DISCARD :CH

(Type "123" within one second)

Result: 1

(the characters "2" and "3" are discarded)

TopIndex