Difference between revisions of "Printer.getCursorPos"
From ComputerCraft Wiki
MathManiac0 (Talk | contribs) (Added Page) |
m (Moved to CAT:LuaCoreFunctions) |
||
Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Revision as of 18:50, 28 November 2012
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> |