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

clear() public method

Clear the terminal window
public clear ( ) : void
return void
    public function clear();

Usage Example

コード例 #1
0
ファイル: CliMenu.php プロジェクト: php-school/cli-menu
 /**
  * Configure the terminal to work with CliMenu
  *
  * @throws InvalidTerminalException
  */
 protected function configureTerminal()
 {
     $this->assertTerminalIsValidTTY();
     $this->terminal->setCanonicalMode();
     $this->terminal->disableCursor();
     $this->terminal->clear();
 }
All Usage Examples Of PhpSchool\CliMenu\Terminal\TerminalInterface::clear