Purpose |
Determine if standard output is sent to the console window, or has been redirected to a file or device. |
Syntax |
v& = CONSOUT |
Remarks |
v& is the result of the console redirection test, and is determined at the start of program execution. CONSOUT returns logical TRUE (non-zero) if standard output is displayed on the console screen, or FALSE (zero) if it is redirected to a file or device. |
See also |
CONSHNDL, CONSIN, GETSTDERR, GETSTDIN, GETSTDOUT, STDEOF, STDERR, STDIN LINE, STDOUT |
Example |
IF ISTRUE(CONSOUT) THEN PRINT "STDOUT is sending output to the display" ELSE PRINT "STDOUT has been redirected" END IF |