clear() 공개 메소드

Clear the terminal window
public clear ( ) : void
리턴 void
예제 #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();
 }
예제 #2
0
파일: CliMenu.php 프로젝트: mops1k/cli-menu
 /**
  * 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();
 }