? CLS Command ● SmileBASIC Source

Sign In

*Usernames are case-sensitive
Forgot my password
[Help Wanted] SmileBASIC Documentation Project

CLS Command


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
6 votes
  • CLS
  • cls
  • clear
  • screen
  • console
3 Comment(s) kenchic kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself N3DS screen? It's the 3DS screen. CyberYoshi64 CyberYoshi64 Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength N3DS... That should mean any »Nintendo« 3DS. Not ›New‹ Nimtendo 3DS Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Yes, but 3DS is understood as Nintendo 3DS, so n3DS is known as the 'new' Nintendo 3DS.