Check output device is a terminal: Difference between revisions

m
(→‎{{header|Kotlin}}: Updated to K/N v0.5)
Line 293:
=={{header|PHP}}==
<lang php>
if(posix_isatty('/dev/stdout'STDOUT)) {
echo "The output device is a terminal".PHP_EOL;
} else {
Line 299:
}
</lang>
 
=={{header|Python}}==
Pretty much the same as [[Check input device is a terminal#Python]].
Anonymous user