clear() public méthode

Clear the terminal window
public clear ( ) : void
Résultat void
Exemple #1
0
 /**
  * Configure the terminal to work with CliMenu
  *
  * @throws InvalidTerminalException
  */
 protected function configureTerminal()
 {
     $this->assertTerminalIsValidTTY();
     $this->terminal->setCanonicalMode();
     $this->terminal->disableCursor();
     $this->terminal->clear();
 }
Exemple #2
0
 /**
  * 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();
 }