Difference between revisions of "Term.clear"
From ComputerCraft Wiki
m (Grammar, we use it.) |
Bomb Bloke (Talk | contribs) m |
||
Line 5: | Line 5: | ||
|api=term | |api=term | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Clears the screen | + | |desc=Clears the screen by overwriting the whole display with blank spaces. The results are affected by the current [[term.setBackgroundColor|background colour]]. |
|examples= | |examples= | ||
{{Example | {{Example |
Latest revision as of 03:01, 25 June 2014
Function term.clear | |
Clears the screen by overwriting the whole display with blank spaces. The results are affected by the current background colour. | |
Syntax | term.clear() |
Returns | nil |
Part of | ComputerCraft |
API | term |
Examples
Example | |
Clears all text on the console or monitor and sets the cursor to coordinate (1, 1) on the screen. | |
Code |
term.clear() |
Example | |
Turns the screen a specified colour | |
Code |
term.setBackgroundColor(colors.blue) |