Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. --[[startup]]--
  2. function start()
  3. term.clear()
  4. term.setTextColor(colors.green)
  5. term.setCursorPos(15, 1)
  6. print("Admin Monitor System")
  7. term.setTextColor(colors.white)
  8. term.setCursorPos(1, 2)
  9. end
  10.  
  11. -- Change the right to any direction on the pc
  12. monitor = peripheral.wrap("top")
  13.  
  14. --Sets the input of what the monitors going to say
  15. function input()
  16. term.clear()
  17. monitor.clear()
  18. start()
  19. term.setCursorPos(1, 2)
  20. print("What do you want to type in the Monitor:")
  21. input3 = read()
  22. monitor.setCursorPos(1, 1)
  23. monitor.write(input3)
  24. term.clear()
  25. term.setCursorPos(1, 1)
  26. end
  27.  
  28. --Function calls
  29. start()
  30. os.sleep(1)
  31. input()
  32. os.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement