Check input device is a terminal: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: Fix code: Perl 6 --> Raku)
(Added Wren)
Line 364: Line 364:
echo "Input is NOT a terminal"
echo "Input is NOT a terminal"
fi</lang>
fi</lang>

=={{header|Wren}}==
<lang ecmascript>import "io" for Stdin

System.print("Input device is a terminal? %(Stdin.isTerminal ? "Yes" : "No")")</lang>

{{out}}
<pre>
Input device is a terminal? Yes
</pre>


=={{header|zkl}}==
=={{header|zkl}}==