printer.getCursorPos
From ComputerCraft Wiki
Revision as of 18:50, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)
| Gives you the x- and y-position of the printer cursor. | |
| Syntax | printer.getCursorPos() |
| Returns | The x- and y-position of the printer cursor. |
| Part of | ComputerCraft |
| API | peripheral |
Examples
| Prints the cursor of the printer. | |
| Code |
local a, b = printer.getCursorPos() |
| Output | X: <x position>, Y: <y position> |