CPOS
Format: CPOS (expr1, expr2)
Supported by: COMX BASIC V1.00
Similar commands:
Telmac SBASIC v 24.3: MOVE
Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0: CPOS
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.
10 CPOS (11, 12) 20 PRINT "THIS IS A TEST" RUN
will print the message at the centre of the screen.