Check output device is a terminal: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: comment -> use new requires() builtin) |
|||
Line 436: | Line 436: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
<lang Phix>requires("0.8.2") -- (isatty() was added in that version) |
|||
Requires 0.8.2+ |
|||
printf(1,"stdin:%t, stdout:%t, stderr:%t\n",{isatty(0),isatty(1),isatty(2)})</lang> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |