This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
tom2018's profile picture

Help with colors needed

Started by tom2018, 24 October 2012 - 09:15 PM
tom2018 #1
Posted 24 October 2012 - 11:15 PM
I was wondering how would i detect if a computer is normal/advanced because when i have a colors option in my program and a normal computer selects it it then gives the error that color isn't supported and exits the program? I don't want to have to provide 2 different downloads for such a small item.
Tiin57 #2
Posted 24 October 2012 - 11:36 PM
I don't believe there is a specific function to do this.
Lyqyd #3
Posted 24 October 2012 - 11:52 PM
term.isColor() or term.isColour(). Both do the same thing: return true on advanced computer/monitor, false on regular computer/monitor.
Tiin57 #4
Posted 24 October 2012 - 11:56 PM
Oop. Sorry about misinformation.
tom2018 #5
Posted 25 October 2012 - 12:01 AM
term.isColor() or term.isColour(). Both do the same thing: return true on advanced computer/monitor, false on regular computer/monitor.
Thanks