public function testMove_up_left() { $this->cursor->move(-2, -2); $this->assertEquals("[2A[2D", $this->console->getOutput()); }
/** * 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); }
/** * Restores previously saved cursor position and attributes */ public function restore() { $this->console->writeCode(Code::CURSOR_RESTORE); }
public function testWriteCode() { $this->console->writeCode('test'); $this->assertEquals("test", $this->console->getOutput()); }
public function testScrollDown_5() { $this->screen->scrollDown(5); $this->assertEquals("MMMMM", $this->console->getOutput()); }