getDetails() public method

Get terminal details
public getDetails ( ) : string
return string
Ejemplo n.º 1
0
 /**
  * Revert changes made to the terminal
  *
  * @throws InvalidTerminalException
  */
 protected function tearDownTerminal()
 {
     if (!$this->terminal->isTTY()) {
         throw new InvalidTerminalException(sprintf('Terminal "%s" is not a valid TTY', $this->terminal->getDetails()));
     }
     $this->terminal->setCanonicalMode(false);
     $this->terminal->enableCursor();
 }
Ejemplo n.º 2
0
 private function assertTerminalIsValidTTY()
 {
     if (!$this->terminal->isTTY()) {
         throw new InvalidTerminalException(sprintf('Terminal "%s" is not a valid TTY', $this->terminal->getDetails()));
     }
 }