Task

Demonstrate how to check whether the output device is a terminal or not.



Related task

   Check input device is a terminal


 
Open Cons For Output As #1
' Open Cons abre los flujos de entrada (stdin) o salida (stdout) estándar 
' de la consola para leer o escribir. 
 
If Err > 0 Then
    Print #1, "stdout is not a tty."
Else
    Print #1, "stdout is a tty."
End If  
Close #1
Sleep
 