INPUT FLUSH statement

Purpose

Empty all pending keyboard and mouse events from the console input buffer.

Syntax

INPUT FLUSH

See also

INKEY$, INSHIFT, INSTAT, WAITKEY$, WAITSTAT

Example

PRINT "Press any key to continue…"

INPUT FLUSH

WAITKEY$