term.setTextColour

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

ExampleSet text colour
Prints "Hello, world!" in green.
Code
<nowiki>
term.setTextColour(colours.green)
print("Hello, world!")
  </nowiki>
Output

term.setTextColour
Function
Syntax
term.setTextColour(
  • 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.