setCursorPosition method

  1. @override
void setCursorPosition(
  1. int x,
  2. int y
)
override

Moves the cursor to the given x (column) and y (row) position.

Implementation

@override
void setCursorPosition(int x, int y) {
  FfiWrite.instance.writeString('\x1b[${y + 1};${x + 1}H');
}