term.setCursorPos
From ComputerCraft Wiki
Revision as of 20:24, 2 September 2012 by 76.188.255.48 (Talk)
Function term.setCursorPos | |
Sets the location of the cursor on screen. | |
Syntax | term.setCursorPos(int x, int y) |
Returns | none |
Part of | ComputerCraft |
API | term |
Examples
Basic usage
Example | |
Sets the location of the cursor on screen to the top | |
Code |
term.setCursorPos(1,1) |
Using the old cursor position to effect the new one
Example | |
Sets the location of the cursor to the start of the line. | |
Code |
oldx, oldy = term.getCursorPos() |
What is the code for this without the API when not coding for CC