Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function quit()
- term.clear()
- term.setCursorPos(1,1)
- error()
- end
- local reactor = peripheral.wrap("back")
- if reactor == nil or not reactor.getConnected() then
- print("<Error> Reactor not connected!")
- print("Exiting...")
- os.sleep(2)
- quit()
- end
- print("<> Reactor control up and running")
- print()
- while true do
- print()
- term.write("> ")
- local command = read()
- if command == "exit" then
- quit()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement