Difference between revisions of "Printer.write"

From ComputerCraft Wiki
Jump to: navigation, search
Line 3: Line 3:
 
|name=printer.write
 
|name=printer.write
 
|args=[[string (type)|string]] text
 
|args=[[string (type)|string]] text
|returns=[[string (type)|string]] ""
+
|returns=empty [[string (type)|string]] (bug?)
 
|api=none
 
|api=none
 
|addon=ComputerCraft
 
|addon=ComputerCraft

Revision as of 17:32, 26 September 2012


Grid Redstone.png  Function printer.write
Writes onto the paper
Syntax printer.write(string text)
Returns empty string (bug?)
Part of ComputerCraft
API none

Examples

Grid paper.png  Example
Writes text onto the loaded paper, at the cursor's current position. This does not produce a new line, and anything else printed or written after this will be on the same line.
Code
printer.write("Hello, World!")
Output Prints "Hello, World!" onto the loaded paper.