setCursor method

void setCursor(
  1. int row,
  2. int col
)

Sets the cursor position.

Implementation

void setCursor(int row, int col) {
  _row = row.clamp(0, _lines.length - 1);
  _col = col.clamp(0, _lines[_row].length);
}