Difference between revisions of "Printer.setCursorPos"

From ComputerCraft Wiki
Jump to: navigation, search
m (Reverted edits by 199.19.105.156 (talk) to last revision by Lyqyd)
(Changing int to number)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=printer.setCursorPos
 
|name=printer.setCursorPos
|args=[[int (type)|int]] x, [[int (type)|int]] y
+
|args={{type|number}} x, {{type|number}} y
 
|returns=none
 
|returns=none
|api=peripheral
+
|api=printer
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Sets the position of the printer cursor, similar to [[term.setCursorPos]], but on a printer.
 
|desc=Sets the position of the printer cursor, similar to [[term.setCursorPos]], but on a printer.

Revision as of 14:20, 18 July 2013


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

Examples

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