Advertisement
CatRabbit499

Terminal Glasses

Jun 22nd, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. glass = peripheral.wrap("top")
  2.  
  3. function addBox()
  4. glass.addBox(1,1,80,10,0xFFFFFF,0.2)
  5. end
  6.  
  7. function timeDis()
  8. time = textutils.formatTime(os.time(), false)
  9. glass.addText(5,2,"TIME: " .. time, 0xFF0000)
  10. end
  11.  
  12. function start()
  13. while true do
  14. glass.clear()
  15. addBox()
  16. timeDis()
  17. glass.sync()
  18. sleep(0.1)
  19. end
  20. end
  21.  
  22. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement