willwac

smallnet notifications

Dec 9th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1.  
  2. local sn = peripheral.wrap('right')
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. local input
  6. print("Type \"/exit\" to close the program.")
  7. while true do
  8.   write(">")
  9.   input = read()
  10.   if input == "/exit" then
  11.     break
  12.   end
  13.   sn.send("SmartHelmet",input)
  14. end
  15. print("Thank you for using SmallNet")
  16. print("Press any key to exit")
  17. os.pullEvent("key")
Advertisement
Add Comment
Please, Sign In to add comment