Check output device is a terminal: Difference between revisions
Content added Content deleted
(Added Quackery.) |
m (→{{header|Quackery}}: changed in to out. D'oh.) |
||
Line 499: | Line 499: | ||
{{trans|Python}} |
{{trans|Python}} |
||
<lang Quackery> [ $ |from sys import |
<lang Quackery> [ $ |from sys import stdout |
||
to_stack( 1 if |
to_stack( 1 if stdout.isatty() else 0)| |
||
python ] is ttyout ( --> b ) |
python ] is ttyout ( --> b ) |
||