# CLEARINPUT

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
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