term.clear

From ComputerCraft Wiki
Revision as of 23:53, 7 July 2013 by AfterLifeLochie (Talk | contribs) (Grammar, we use it.)

Jump to: navigation, search


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

Examples

Grid paper.png  Example
Clears all text on the console or monitor and sets the cursor to coordinate (1, 1) on the screen.
Code
term.clear()
term.setCursorPos(1,1)



Grid paper.png  Example
Turns the screen a specified colour
Code
term.setBackgroundColor(colors.blue)
term.clear()