function Process::isTtySupported
Returns whether TTY is supported on the current operating system.
1 call to Process::isTtySupported()
- Process::setTty in vendor/
symfony/ process/ Process.php - Enables or disables the TTY mode.
File
-
vendor/
symfony/ process/ Process.php, line 1247
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public static function isTtySupported() : bool {
static $isTtySupported;
return $isTtySupported ??= '/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT) && @is_writable('/dev/tty');
}