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 => _cursorX.clamp(0, _terminal.viewWidth - 1);