Difference between revisions of "Clear"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:Programs; CAT:Tutorials.)
Line 19: Line 19:
== term.clear ==
== term.clear ==
For term.clear, visit [[Term.clear]]
For term.clear, visit [[Term.clear]]

Revision as of 15:41, 28 November 2012


Clear is a built-in program in ComputerCraft. You may want to use it in a script like:

  print('Your screen has been cleared!')

or just type:


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.


For term.clear, visit Term.clear