Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

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\Process

Code

public static function isTtySupported() : bool {
    static $isTtySupported;
    return $isTtySupported ??= '/' === \DIRECTORY_SEPARATOR && stream_isatty(\STDOUT) && @is_writable('/dev/tty');
}
RSS feed
Powered by Drupal