Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- mon.clear()
- w, h = mon.getSize()
- function line1(color, num, text)
- mon.setCursorPos((w-string.len(text))/2+1, num*2)
- mon.setTextColor(color)
- mon.write(text)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement