PhpSchool\CliMenu\Terminal\TerminalInterface::setCanonicalMode PHP Method

setCanonicalMode() public method

Toggle canonical mode on TTY
public setCanonicalMode ( boolean $useCanonicalMode = true )
$useCanonicalMode boolean
    public function setCanonicalMode($useCanonicalMode = true);

Usage Example

Example #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();
 }
All Usage Examples Of PhpSchool\CliMenu\Terminal\TerminalInterface::setCanonicalMode