term.setTextColour

From ComputerCraft
Jump to navigation Jump to search

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

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

Error creating thumbnail: Unable to save thumbnail to destination
ExampleSet text colour
Prints "Hello, world!" in green.
Code
term.setTextColour(colours.green)
print("Hello, world!")
Output
Error creating thumbnail: Unable to save thumbnail to destination