Advertisement
Guest User

cl

a guest
Nov 27th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local monitor = peripheral.wrap("back")
  2. monitor.setTextScale(4)
  3.  
  4. while true do
  5.     monitor.write(textutils.formatTime(os.time(), true))--os.time()
  6.     sleep(1)
  7.     monitor.clear()
  8.     monitor.setCursorPos(1,1)
  9.     if rs.getInput("top") == true then
  10.         term.clear()
  11.         term.setCursorPos()
  12.         os.reboot()
  13.     end
  14.  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement