goto method

void goto({
  1. required int x,
  2. required int y,
})

Moves the cursor to the specified 1-based x and y coordinates.

Implementation

void goto({required int x, required int y}) {
  assert(x > 0 && y > 0);
  backend.write('\x1b[$y;${x}H');
}