Difference between revisions of "Printer.getCursorPos"
From ComputerCraft Wiki
(Corrected API link) |
m |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=printer.getCursorPos | |name=printer.getCursorPos | ||
| − | |returns={{type|number}} x- and | + | |returns={{type|number}} x- and y-position of the printer cursor. |
|api=printer | |api=printer | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
Revision as of 14:19, 18 July 2013
| 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> |