FANDOM


CSRX and CSRY are integer read-only system variables which describe the position of the cursor. CSRX can have values from 0 to 31 inclusive, and CSRY can have values from 0 to 23 inclusive.

If CSRY is 0, then you PRINT a character, the character will appear at the top of the screen. If CSRY is 23, a PRINTed character will appear at the bottom of the screen.

If CSRX is 0, a PRINTed character will appear on the left side, if <CSRX> is 10, it will appear approximately one-third the way across. However, if <CSRX> is 31, it could indicate one of two possible situations; either the next PRINTed character will appear on the very right, or it will appear on the very left of the line below (and the display will scroll up if necessary). The second situation may occur if PRINT command shows a string that ends in the rightmost column, and the command ends with a ;. The following pieces of code illustrate this point.

?:?"."*30;:X=CSRX will result in X having the value 30, as expected.

?:?"."*31;:X=CSRX will result in X having the value 31, also as expected.

?:?"."*32;:X=CSRX will also result in X having the value 31. This result is somewhat inconsistent.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.