CLS CLear Screen
Statement/Command
CLS clears all text and graphics from the display area leaving it blank in the current paper (background) colour.
How to use CLS
CLS may be used as a direct command or it may form a statement in a program. It requires no parameters, for example
250 IF a$="NO" THEN CLS
The display area (but not the border) is then cleared to the colour selected by the previous PAPER statement or command or to the default paper colour of white.
Note that CLS must be used after PAPER and before PRINT or any other display statement to produce a coloured background over the whole display area.
Format
- CLS
See also