Format: CPOS (expr1, expr2)
Supported by: COMX BASIC V1.00
This statement (Cursor Position) directs the cursor to a position in the screen specified by the two expressions in bracket. The first specifies the row position (0 to 23) and the second, the column position (0 to 39) of the cursor. CPOS may be used together with CLS to enable part of the screen to be cleared, with PRINT for printing messages and headings beginning from specified position on the screen, or with SHAPE to create color graphics. For example
10 CPOS (11,0) 20 CLS RUN
will clear the lower half of the screen.
will print the message at the centre of the screen.