CLEARINPUT


The CLEARINPUT statement clears the type-ahead buffer to allow the next INPUT statement to force a response from the user.

 

COMMAND SYNTAX

CLEARINPUT

 

SYNTAX ELEMENTS

None.

 

NOTES

CLEARINPUT only clears the type-ahead buffer. It does not clear data stacked with the DATA statement.

The CLEARINPUT statement is synonymous with INPUTCLEAR.

 

EXAMPLE

In the following example, the CLEARINPUT statement clears the terminal type-ahead buffer to provoke a response from the user to the prompt:

CLEARINPUT

PRINT "DO YOU WANT TO DELETE THIS FILE?(Y OR N)"; INPUT X,1

 


jBC