Task

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



Related task

   Check input device is a terminal


Module Module1
 
    Sub Main()
        Console.WriteLine("Stdout is tty: {0}", Console.IsOutputRedirected)
    End Sub
 
End Module