cursorX property

int get cursorX

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

Implementation

int get cursorX => _cursorX.clamp(0, terminal.viewWidth - 1);