Difference between revisions of "Printer.write"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
m (-> printer api)
Line 4: Line 4:
 
|args=[[string (type)|string]] text
 
|args=[[string (type)|string]] text
 
|returns=empty [[string (type)|string]] (bug?)
 
|returns=empty [[string (type)|string]] (bug?)
|api=none
+
|api=printer
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Writes onto the paper
 
|desc=Writes onto the paper

Revision as of 10:03, 30 November 2012


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

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.