Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- function Menu()
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.red)
- term.clear()
- term.setCursorPos(1, 1)
- print("Spaldotech AE Channel Management Interface v1.0")
- sleep(2)
- term.setTextColor(colours.white)
- print("If you require help, type 'help'")
- term.setTextColor(colours.orange)
- write("Please enter command: ")
- choice = read()
- end
- Menu()
- if choice == "locations" then
- print("Channel colour point to the following locations: ")
- sleep(2)
- shell.run("locations.lua")
- term.setTextColor(colors.orange)
- print("Press any key to continue")
- os.pullEvent("key")
- end
- if choice == "help" then
- print("Commands include: ")
- print("locations")
- print("exit")
- print("help")
- term.setBackgroundColor(colours.red)
- print("Press any key to continue")
- os.pullEvent("key")
- end
- if choice == "test" then
- print("test")
- sleep(2)
- break
- end
- if choice == "exit" then
- term.setBackgroundColor(colors.black)
- term.setTextColor(colours.white)
- term.clear()
- term.setCursorPos(1, 1)
- print("Goodbye")
- sleep(2)
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement