Difference between revisions of "Clear"
From ComputerCraft Wiki
m (Added deletion recommendation) |
m (Forgot to sign off, oops!) |
||
| Line 1: | Line 1: | ||
| − | {{ToDelete|This contains information already available on the [[CraftOS Shell]] page.}} | + | {{ToDelete|This contains information already available on the [[CraftOS Shell]] page. - [[User:Oeed|Oeed]] 07:52, 26 March 2014 (GMT)}} |
== Clear == | == Clear == | ||
Revision as of 07:52, 26 March 2014
| This has been marked for deletion! The content of this page is likely obsolete, duplicitous or irrelevant. You should not use or trust all information you see here.
(Reason: This contains information already available on the CraftOS Shell page. - Oeed 07:52, 26 March 2014 (GMT)) |
Clear
Clear is a built-in program in ComputerCraft. You may want to use it in a script like:
shell.run('clear')
print('Your screen has been cleared!')
or just type:
clear
in the computer.
This clears the screen so you can write text.
NOTE: It is not recommended to use the above code in a program, instead use Term.clear. It is only recommended to use this program to clear the screen through the shell.
term.clear
For term.clear, visit Term.clear