term.setBackgroundColour

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.

ExampleSet background colour
Prints "Hello, world!" with a green background.
Code
<nowiki>
term.setBackgroundColour(colours.green)
print("Hello, world!")
  </nowiki>
Output

term.setBackgroundColour
Function
Syntax
term.setBackgroundColour(
  • colour : number
)

Returns nil
API term
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.