XPOS

n = XPOS

Returns the current X-position of the text cursor in “characters”.

See YPOS for Y-position.

Example

locate 10,5
print XPOS, YPOS        ' Output 5   10