LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

CLS Command

Root / Submissions / [.]

computableeCreated:

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 screen
Rewriting the text on the screen.
PRINT "Sentence number 1"
CLS
PRINT "Sentence number 2"

'Output on screen:
'Sentence number 2

N3DS screen? It's the 3DS screen.

Replying to:chicken
N3DS screen? It's the 3DS screen.
N3DS... That should mean any »Nintendo« 3DS. Not ›New‹ Nimtendo 3DS

Replying to:chicken
N3DS screen? It's the 3DS screen.
Yes, but 3DS is understood as Nintendo 3DS, so n3DS is known as the 'new' Nintendo 3DS.