Task

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



Related task

   Check input device is a terminal


/* check_output_device_is_terminal.wren */
 
class C {
    foreign static isOutputDeviceTerminal
}
 
System.print("Output device is a terminal = %(C.isOutputDeviceTerminal)")