Check input device is a terminal: Difference between revisions
m
→{{header|UNIX Shell}}: remove linefeeds
(Dialects of BASIC moved to the BASIC section.) |
m (→{{header|UNIX Shell}}: remove linefeeds) |
||
Line 491:
if [ -t 0 ]
▲ echo "Input is NOT a terminal"
fi</syntaxhighlight>
=={{header|Wren}}==
<syntaxhighlight lang="ecmascript">import "io" for Stdin
|