term.isColour

Returns whether or not this terminal object supports colour.

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

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.

ExampleCheck if colour is supported
Prints whether or not the current term supports colour.
Code
<nowiki>
print(term.isColour())
  </nowiki>
Output
true
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.