From ComputerCraft Wiki
Jump to: navigation, search

Grid Redstone.png  Function term.setBackgroundColor
Changes the background color of the terminal. For ease of use, it is best to use the color codes provided in the colors API. Note that non-advanced systems only have black and white displays, though the background color may still be set to either of these four colors: black, white, gray and light gray. Also available as term.setBackgroundColour for British spelling.

See also: term.getBackgroundColor()
Syntax term.setBackgroundColor(number color code)
Returns nil
Part of ComputerCraft
API term


Grid paper.png  Example
Writes text with a gray background.
term.setBackgroundColor( colors.gray )
print( "I have a gray background" )