Task

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



Related task

   Check output device is a terminal


say $*IN.t ?? "Input comes from tty." !! "Input doesn't come from tty.";