term.setBackgroundColour

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

term.setBackgroundColour
Function
Syntax
term.setBackgroundColour()
Returns nil
API term
Source CC:Tweaked (source)

Sets the background colour of the terminal object. All text written after calling this function will have this background colour, until it is changed again.

ExampleExampleSet background colour
Prints "Hello, world!" with a green background.
Code
term.setBackgroundColour(colours.green)
print("Hello, world!")
Output Demo term.setBackgroundColour.png