The Monitor is a peripheral device available for CraftOS. Type "help peripheral" to learn about using the Peripheral API to connect with peripherals. When a Monitor is connected, peripheral.getType() will return "monitor".

Methods exposed by the Monitor:
write( text )
clear()
clearLine()
getCursorPos()
setCursorPos( x, y )
setCursorBlink( blink )
isColor()
setTextColor( color )
setBackgroundColor( color )
getSize()
scroll( n )
redirect( object )
restore()

Events fired by the Monitor:
"monitor_touch" when an Advanced Monitor is touched by the player. Arguments are side, x, y
"monitor_resize" when the size of a Monitor changes. Arguments is the side.