Skip to content

Text commands

cursorkeys edited this page Nov 28, 2022 · 4 revisions

locate y,x to locate the cursor, for the next print command


center str$ to print the string str$ on the current line, in the middle of the screen.


color fg, bg to change the foreground and background color of the print and other text commands


cls to clear the text (and graphics) screen


reverse to reverse the text. The background colors becomes the foreground color, and visa versa.

Screen dimensions

The functions rows() and columns() or cols(), return the text width or height of the screen in characters.

Clone this wiki locally