Difference between revisions of "Term.clear"

From ComputerCraft Wiki
Jump to: navigation, search
Line 10: Line 10:
 
{{Example
 
{{Example
 
|desc=Clears any text on the console or monitor.
 
|desc=Clears any text on the console or monitor.
|code=term.clear()
+
|code=term.clear()<br />term.setCursorPos(1,1)
 
}}
 
}}
 
}}
 
}}

Revision as of 19:08, 2 September 2012


Grid Redstone.png  Function term.clear
Clears the screen
Syntax term.clear(none)
Returns none
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Clears any text on the console or monitor.
Code
term.clear()
term.setCursorPos(1,1)