Jump to content

Check output device is a terminal: Difference between revisions

m
→‎{{header|Phix}}: comment -> use new requires() builtin
m (→‎{{header|Phix}}: comment -> use new requires() builtin)
Line 436:
 
=={{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,806

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.