Printer API

From ComputerCraft
Revision as of 19:37, 23 April 2019 by Wilma456 (talk | contribs) (Created page with "{{:printer.endPage}} {{:printer.getCursorPos}} {{:printer.getInkLevel}} {{:printer.getPageSize}} {{:printer.getPaperLevel}} {{:printer.newPage}} {{:printer.setCursorPos}} {{:p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Printer.endPage Printer.getCursorPos

FunctionFunctionprinter.getInkLevel
Returns the amount of ink.
Syntax printer.getInkLevel()
Returns number inkAmount
Part of CC:Tweaked (source)
API printer
ExampleExampleGet ink level
Get ink level and print it.
Code
local printer = peripheral.find("printer")
print(printer.getInkLeve())
Output
5

Printer.getPageSize

FunctionFunctionprinter.getPaperLevel
Returns the amount of paper in the printer.
Syntax printer.getPaperLevel()
Returns number paperAmount
Part of CC:Tweaked (source)
API printer
ExampleExampleGet paper level
Get the paper level and print it.
Code
local printer = peripheral.find("printer")
print(printer.getPaperLevel())
Output
5

Printer.newPage Printer.setCursorPos Printer.setPageTitle Printer.write