printer.getCursorPos
From ComputerCraft Wiki
Function printer.getCursorPos | |
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
Example | |
Prints the cursor of the printer. | |
Code |
local a, b = printer.getCursorPos() |
Output | X: <x position>, Y: <y position> |