cursorX property

int get cursorX

Horizontal position of the cursor relative to the top-left cornor of the screen, starting from 0.

Implementation

int get cursorX {
  final vt = _lines.activeVt;
  return vt == null ? 0 : vt.cursorX.clamp(0, vt.cols - 1);
}