CONSIN function

Purpose

Determine if standard input is coming from the console input buffer, or has been redirected from another source.

Syntax

v& = CONSIN

Remarks

CONSIN returns TRUE (non-zero) if standard input is originating at the console keyboard, or FALSE (zero) if it is redirected from a file or device, which is determined at the start of program execution.

See also

CONSHNDL, CONSOUT, GETSTDERR, GETSTDIN, GETSTDOUT, STDEOF, STDERR, STDIN LINE, STDOUT

Example

IF ISTRUE CONSIN THEN

A$ = "STDIN is taking input from the keyboard"

ELSE

  A$ = "STDIN has been redirected"

END IF