Difference between revisions of "Printer.write"

From ComputerCraft Wiki
Jump to: navigation, search
m (Category -> API Functions)
(Please do not change categories without confirming with me first.)
Line 16: Line 16:
 
}}
 
}}
  
[[Category:API_Functions]]
+
[[Category:Lua_Core_Functions]]

Revision as of 00:44, 1 December 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.