setCursorX method

void setCursorX(
  1. int x
)

Moves the cursor to column x (0-based) (CHA).

Implementation

void setCursorX(int x) {
  _seq('\x1b[${max(x, 0) + 1}G');
}