Check input device is a terminal: Difference between revisions

m
→‎{{header|Phix}}: comment -> use new requires() builtin
m (replaced tty by terminal.)
m (→‎{{header|Phix}}: comment -> use new requires() builtin)
Line 303:
 
=={{header|Phix}}==
<lang Phix>requires("0.8.2") -- (isatty() was added in that version)
Requires 0.8.2+
<lang Phix>printf(1,"stdin:%t, stdout:%t, stderr:%t\n",{isatty(0),isatty(1),isatty(2)})</lang>
{{out}}
<pre>
7,804

edits