Table of Contents

POS

C64 VIC-20 C16 Plus/4 C128 X16 M65

The POS() function returns the current column position of the cursor.

Function header

DECLARE FUNCTION POS AS BYTE () SHARED STATIC INLINE

Example

PRINT "after printing this text{13}the cursor will be in column: ";
PRINT POS()

Warning

This function does not work on the Commodore PET.

See also