Task

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



Related task

   Check output device is a terminal


without js -- (no input redirection in a browser!)
printf(1,"stdin:%t, stdout:%t, stderr:%t\n",{isatty(0),isatty(1),isatty(2)})
