Task

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



Related task

   Check output device is a terminal


import "io" for Stdin
 
System.print("Input device is a terminal? %(Stdin.isTerminal ? "Yes" : "No")")