コード例 #1
0
ファイル: CursorTest.php プロジェクト: d-ashesss/php-console
 public function setUp()
 {
     $this->console = new \dAshesss\Console(true);
     $this->console->mute();
     $this->cursor = $this->console->cursor();
 }
コード例 #2
0
ファイル: Screen.php プロジェクト: d-ashesss/php-console
 /**
  * Clears entire screen and moves cursor to upper left corner
  */
 public function clear()
 {
     $this->console->writeCode(Code::SCREEN_CLEAR);
     $this->console->cursor()->moveTo(0, 0);
 }