Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1,1)
- p = print
- p("Commands...")
- p("1-Open")
- p("2-Close")
- p("Q-Quit App")
- i = io.read()
- if i == "1" then
- rs.setOutput("back",true)
- elseif i == "2" then
- rs.setOutput("back",false)
- elseif i == "Q" then
- break
- else
- print("Invalid")
- shell.run(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement