term.setCursorPos
From ComputerCraft Wiki
Revision as of 04:51, 6 July 2012 by 50.39.186.71 (Talk)
| 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
| 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
| Sets the location of the cursor to the start of the line. | |
| Code |
oldx, oldy = term.getCursorPos() |