Description
CLS is a command used in SmileBasic to clear all text on the N3DS screen. It takes no arguments, so it is a very simple command to use. The CLS command will clear any text currently being displayed on the screen (top by default) and will also set all new text to appear in the top-left corner. This is like an imaginary LOCATE 0,0,0 command.Advanced Use
You can specify which screen to clear by using the DISPLAY command.Program Example
Clearing the screen after text has been shown.PRINT "Hello, world!" CLS 'Output on screen: 'Blank screenRewriting the text on the screen.
PRINT "Sentence number 1" CLS PRINT "Sentence number 2" 'Output on screen: 'Sentence number 2