Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("output")
- output.setside("back")
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Lithia's Color Manager")
- print("----------------------")
- input = read()
- if input == "white on" then
- output.set("white", true)
- elseif input == "white off" then
- output.set("white", false)
- elseif input == "orange on" then
- output.set("orange", true)
- elseif input == "orange off" then
- output.set("orange", false)
- elseif input == "magneta on" then
- output.set("magneta", true)
- elseif input == "magneta off" then
- output.set("magneta", false)
- elseif input == "lightblue on" then
- output.set("lightblue", true)
- elseif input == "lightblue off" then
- output.set("lightblue", false)
- elseif input == "yellow on" then
- output.set("yellow", true)
- elseif input == "yellow off" then
- output.set("yellow", false)
- elseif input == "lime on" then
- output.set("lime", true)
- elseif input == "lime off" then
- output.set("lime", false)
- elseif input == "pink on" then
- output.set("pink", true)
- elseif input == "pink off" then
- output.set("pink", false)
- elseif input == "gray on" then
- output.set("gray", true)
- elseif input == "gray off" then
- output.set("gray", false)
- elseif input == "lightgray on" then
- output.set("lightgray", true)
- elseif input == "lightgray off" then
- output.set("lightgray", false)
- elseif input == "cyan on" then
- output.set("cyan", true)
- elseif input == "cyan off" then
- output.set("cyan", false)
- elseif input == "purple on" then
- output.set("purple", true)
- elseif input == "purple off" then
- output.set("purple", false)
- elseif input == "blue on" then
- output.set("blue", true)
- elseif input == "blue off" then
- output.set("blue", false)
- elseif input == "brown on" then
- output.set("brown", true)
- elseif input == "brown off" then
- output.set("brown", false)
- elseif input == "green on" then
- output.set("green", true)
- elseif input == "green off" then
- output.set("green", false)
- elseif input == "red on" then
- output.set("red", true)
- elseif input == "red off" then
- output.set("red", false)
- elseif input == "all off" then
- output.alloff()
- else
- print("invalid input: ", input)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment