-
Notifications
You must be signed in to change notification settings - Fork 7
BASIC CLS Statement
Curtis F Kaylor edited this page Nov 15, 2023
·
3 revisions
TYPE: Extended BASIC I/O statement
FORMAT: CLS
Action: Clears the screen and moves the cursor to the top left position of the screen.
- Fills screen RAM with spaces.
- If a
SET COLOR
statement is in effect, color RAM is filled with the specified colors those colors. - Otherwise color RAM is filled with foreground and background colors 0 and 6, respectively.
Examples of keyword type:
CLS
Clears screen with default colors and moves the cursor to the top left position of the screen.
plusBASIC enhancement
FORMAT: CLS fgcolor , bgcolor
Action: Clears the screen with the specified colors and moves the cursor to the top left position of the screen.
- Fills screen RAM with spaces and color RAM with foreground and background colors fgcolor and bgcolor, respectively.