sc3-rom-dump/rom/help/printers.txt

13 lines
392 B
Plaintext
Raw Normal View History

2024-01-15 10:36:50 +01:00
The Printer is a peripheral device available for CraftOS. Type "help peripheral" to learn about using the Peripheral API to connect with peripherals. When a Printer is connected, peripheral.getType() will return "printer".
Methods exposed by the Printer:
getInkLevel()
getPaperLevel()
newPage()
setPageTitle( title )
getPageSize()
setCursorPos( x, y )
getCursorPos()
write( text )
endPage()