Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mon = peripheral.wrap("top")
  2. mon.clear()
  3. w, h = mon.getSize()
  4.  
  5. function line1(color, num, text)  
  6.    mon.setCursorPos((w-string.len(text))/2+1, num*2)
  7.    mon.setTextColor(color)
  8.    mon.write(text)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement