printer.write

From ComputerCraft Wiki
Revision as of 18:04, 9 April 2014 by MKlegoman357 (Talk | contribs) (Expanded)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function printer.write
Writes text to the paper, works the same way as term.write(). This does not produce a new line, and anything else printed or written after this will be on the same line.
Syntax printer.write(string text)
Returns nil
Part of ComputerCraft
API printer

Examples

Grid paper.png  Example
Writes text onto the paper and prints it.
Code
local printer = peripheral.wrap("left")

printer.newPage()
printer.write("Hello, World!")
printer.endPage()