CLS
This page was last modified 14:52, 3 December 2016 by Mars2000you. Based on work by Gdx and Snout.

Contents

Effect

Clears the screen in any 'standard' screen mode with the last background color specified and resets the cursor coordinates for text.

Notes:
- In text mode, the text of function keys displayed by KEY ON stays on screen.
- The sprites stay on screen as is.
- To clear the screen in KANJI text modes, you need to use CALL CLS. This command can also be useful in SCREEN 9 when the screen is not correctly cleared with CLS.

Syntax

CLS

Related to

CALL CLS, COLOR, KEY, SCREEN

Compatibility

MSX-BASIC 1.0 or higher