posix_isatty
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Determine if a file descriptor is an interactive terminal
posix_isatty
(
resource
|
int $file_descriptor
):
bool
composer/composer
}
if (
function_exists
(
'posix_isatty'
) &&
posix_isatty
(
$fd
)) {
return
true
;
}
src/Composer/Util/Platform.php