Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sn = peripheral.wrap('right')
- term.clear()
- term.setCursorPos(1,1)
- local input
- print("Type \"/exit\" to close the program.")
- while true do
- write(">")
- input = read()
- if input == "/exit" then
- break
- end
- sn.send("SmartHelmet",input)
- end
- print("Thank you for using SmallNet")
- print("Press any key to exit")
- os.pullEvent("key")
Advertisement
Add Comment
Please, Sign In to add comment