Difference between revisions of "Printer.setCursorPos"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
m (Int linking fix.)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=printer.setCursorPos
 
|name=printer.setCursorPos
|args=[[int]] x, [[int]] y
+
|args=[[int (type)|int]] x, [[int (type)|int]] y
 
|returns=none
 
|returns=none
 
|api=peripheral
 
|api=peripheral

Revision as of 18:32, 30 November 2012


Grid Redstone.png  Function printer.setCursorPos
Sets the position of the printer cursor, similar to term.setCursorPos, but on a printer.
Syntax printer.setCursorPos(int x, int y)
Returns none
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  Example
Sets the cursor at the top of the page.
Code
printer.setCursorPos(1,1)
Output none