public function setTty(bool
$tty):
static { if ('\\' === \DIRECTORY_SEPARATOR &&
$tty) { throw new RuntimeException('TTY mode is not supported on Windows platform.'
);
} if ($tty && !self::
isTtySupported()) { throw new RuntimeException('TTY mode requires /dev/tty to be read/writable.'
);
} $this->tty =
$tty;
return $this;
} /**
* Checks if the TTY mode is enabled.
*/