Check input device is a terminal: Difference between revisions
Check input device is a terminal (view source)
Revision as of 10:47, 17 November 2023
, 6 months ago→{{header|Wren}}: Changed to Wren S/H
imported>CyD (Added Forth entry.) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 519:
=={{header|Wren}}==
<syntaxhighlight lang="
System.print("Input device is a terminal? %(Stdin.isTerminal ? "Yes" : "No")")</syntaxhighlight>
Line 527:
Input device is a terminal? Yes
</pre>
=={{header|zkl}}==
On Unix, check to see if stdin's st_mode is a character device.
|