public static function moveCursorTo($column, $row = null) { if ($row === null) { echo "[" . (int) $column . 'G'; } else { echo "[" . (int) $row . ';' . (int) $column . 'H'; } }