$X

$X contains an integer value ranging from 0 to 65,535, specifying the horizontal position of a virtual cursor in the current output record. $X=0 represents the left-most position of a record or row.

Every OPENed device has a $X. However, GT.M only has access to $X of the current device. Therefore, be careful when sequencing USE commands and references to $X.

Generally, GT.M increments $X for every character written to and read from the current device. GT.M format control characters, FILTER, and the device WIDTH and WRAP also have an effect on $X.

SET $X does not automatically issue device commands or escape sequences to reposition the physical cursor.