Task

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



Related task

   Check input device is a terminal


 
if isa(STDOUT, Base.TTY)
    println("This program sees STDOUT as a TTY.")
else
    println("This program does not see STDOUT as a TTY.")
end
 