Function Terminal.cursorX

The current cached x and y positions of the output cursor. 0 == leftmost column for x and topmost row for y.

int cursorX() @property;

Please note that the cached position is not necessarily accurate. You may consider calling [updateCursorPosition] first to ask the terminal for its authoritative answer.