stream_isatty
reactphp/socket
Supported Versions: PHP 7 >= 7.2.0, PHP 8
Check if a stream is a TTY
<?php stream_isatty
(
resource $stream
):
bool