KEYREADY()

KEYREADY()

Top  Previous  Next

 

The KEYREADY() function tests for data entered at the keyboard.

 

 

Format

 

KEYREADY()

 

 

The KEYREADY() function tests whether characters have been typed at the keyboard, returning True if characters are waiting to be processed, False if not. It differs from use of the INPUT statement with a negative length value in that KEYREADY() checks the keyboard only whereas INPUT checks the keyboard and the DATA statement queue.

 

KEYREADY() always returns True when using piped input. The end of file condition can only be determined by a subsequent attempt to read data from the pipe.

 

Data detected by KEYREADY() may be read by a subsequent use of either KEYIN() or INPUT.

 

 

See also:

IN, KEYIN()