SD_Ecliptica

Datacenter Info

Jun 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2. m.clear()
  3. print("Running display script; Ctrl+T to terminate.")
  4.  
  5. m.setTextScale(1)
  6. m.setCursorPos(1,2)
  7. m.setTextColor(colors.purple)
  8. m.write("        Yardle Studios")
  9.  
  10. m.setCursorPos(1,3)
  11. m.setTextColor(colors.white)
  12. m.write("    Datacenter & Cleanroom")
  13.  
  14. m.setTextColor(colors.lime)
  15. m.setCursorPos(1,8)
  16. m.write("      No errors reported.")
  17. m.setCursorPos(1,9)
  18. m.write("      All systems nominal.")
  19.  
  20. -- clock
  21. while true do
  22.     m.setCursorPos(1,5)
  23.     m.setTextColor(colors.lightBlue)
  24.     m.write("            " .. textutils.formatTime(os.time(), true))
  25.     m.setCursorPos(1,6)
  26.     m.write("           Day " .. string.format("%d", math.floor(os.day())))
  27.     sleep(1)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment