term.clearLine

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function term.clearLine
Clears the line that the cursor is currently on. That line is then filled with the color set by term.setBackgroundColor (only if computer supports that color)
Syntax term.clearLine()
Returns None
Part of ComputerCraft
API term

Examples

Grid paper.png  Example
Clears the first line on the computer screen.
Code
term.setCursorPos(1, 1)
term.clearLine()
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox