# CLEARINPUT

Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)

# Description

The command clears the terminal type-ahead buffer to allow the next INPUT statement to force a response from the user. The statement can be used as:

CLEARINPUT
1

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

CLEARINPUT
CRT "Do you want to delete this file? (Y or N)";
INPUT Answer, 1
1
2
3

# Note

CLEARINPUT command is synonymous with INPUTCLEAR.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide