printer.getCursorPos
From ComputerCraft Wiki
| Gives you the x- and y-position of the printer cursor. | |
| Syntax | printer.getCursorPos() |
| Returns | number x- and y-position of the printer cursor. |
| Part of | ComputerCraft |
| API | printer |
Examples
| Prints the cursor of the printer. | |
| Code |
local a, b = printer.getCursorPos() |
| Output | X: <x position>, Y: <y position> |