Posted 19 July 2015 - 08:30 PM
Hi all! I was just wondering if anybody knew how to set a color up to equal input?
Example:
Thanks in advance!
Example:
input = read()
term.setTextColor(color.input)
^That^ doesnt seem to work, so I was wondering if there was another way of doing that instead of the following:
input = read()
if input == "red" then
term.setTextColor(colors.red)
end
Thanks in advance!