private function resetLinePosition() { if ($this->currentLine) { $this->output->write("[" . $this->currentLine . 'A'); // reset cursor Y pos } $this->currentLine = 0; $xPos = 0; $this->output->write("[" . $xPos . 'G'); }