Check output device is a terminal: Difference between revisions
Check output device is a terminal (view source)
Revision as of 00:08, 17 September 2020
, 3 years ago→{{header|Phix}}: (code unchanged but added input pipe test)
(→{{header|Go}}: A solution without the use of external libraries. I'm 95% sure this isn't any worse than the previous version (both would have corner cases)) |
m (→{{header|Phix}}: (code unchanged but added input pipe test)) |
||
Line 433:
C:\Program Files (x86)\Phix>p test 2> test.txt
stdin:true, stdout:true, stderr:false
C:\Program Files (x86)\Phix>type test.txt | p e01.exw
stdin:false, stdout:true, stderr:true
</pre>
|