term.setTextColour

From ComputerCraft
Jump to: navigation, 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.

ExampleExampleSet text colour
Prints "Hello, world!" in green.
Code
term.setTextColour(colours.green)
print("Hello, world!")
Output Demo term.setTextColour.png