/** * Configure the terminal to work with CliMenu * * @throws InvalidTerminalException */ protected function configureTerminal() { $this->assertTerminalIsValidTTY(); $this->terminal->setCanonicalMode(); $this->terminal->disableCursor(); $this->terminal->clear(); }
/** * Configure the terminal to work with CliMenu * * @throws InvalidTerminalException */ protected function configureTerminal() { if (!$this->terminal->isTTY()) { throw new InvalidTerminalException(sprintf('Terminal "%s" is not a valid TTY', $this->terminal->getDetails())); } $this->terminal->setCanonicalMode(); $this->terminal->disableCursor(); $this->terminal->clear(); }