Advertisement
SavageCore

Untitled

Apr 25th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. mon = peripheral.wrap("right") --Screen Side
  2. nir = peripheral.wrap("bottom")
  3. function newLine()
  4.   local _,cY= mon.getCursorPos()
  5.   mon.setCursorPos(1,cY+1)
  6.   return cY
  7. end
  8.  
  9. while true do
  10.   uuid, state, title, info = nir.get(1)
  11.   mon.clear()
  12.   mon.setTextScale(1)           --Text Size
  13.   mon.setCursorPos(1, 1)
  14.   for system, status in pairs(info) do
  15.       status = tostring(status) -- this makes status into a string so it can be printed.
  16.       print("System: "..system.." Status: "..status)
  17.       mon.write("System: ".. system .." | Status: ".. status)
  18.       newLine()
  19.   end
  20.   sleep(.9)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement