think\Process::setTty PHP Метод

setTty() публичный Метод

设置TTY
public setTty ( boolean $tty ) : self
$tty boolean
Результат self
    public function setTty($tty)
    {
        if ('\\' === DS && $tty) {
            throw new \RuntimeException('TTY mode is not supported on Windows platform.');
        }
        if ($tty && (!file_exists('/dev/tty') || !is_readable('/dev/tty'))) {
            throw new \RuntimeException('TTY mode requires /dev/tty to be readable.');
        }
        $this->tty = (bool) $tty;
        return $this;
    }