Task

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



Related task

   Check output device is a terminal


/*REXX program determines if input comes from terminal or standard input*/
 
if queued()  then say 'input comes from the terminal.'
             else say 'input comes from the (stacked) terminal queue.'
 
                                       /*stick a fork in it, we're done.*/
 