Task

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



Related task

   Check input device is a terminal


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