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 ]
then echo "Input is NOT a terminal"
then
else echo "Input is NOT a terminal"
else
echo "Input is NOT a terminal"
fi</syntaxhighlight>
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascript">import "io" for Stdin
1,934

edits