term.isColour

From ComputerCraft
(Redirected from Term.isColor)
Jump to: navigation, search

term.isColour
Function
Syntax
term.isColour()
Returns boolean
API term
Source CC:Tweaked (source)

Returns whether or not this terminal object supports colour.

This returns true for Advanced Computers, Advanced Turtles, Advanced Pocket Computers, Advanced Monitors and Neural Interfaces.

This returns false for Basic Computers, Basic Turtles, Basic Monitors and Basic Pocket Computers.

ExampleExampleCheck if colour is supported
Prints whether or not the current term supports colour.
Code
print(term.isColour())
Output
true