C64 VIC-20 C16 Plus/4 C128 X16 M65
The POS()
function returns the current column position of the cursor.
DECLARE FUNCTION POS AS BYTE () SHARED STATIC INLINE
PRINT "after printing this text{13}the cursor will be in column: "; PRINT POS()
Warning
This function does not work on the Commodore PET.