13 lines
392 B
Plaintext
13 lines
392 B
Plaintext
|
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()
|