term.setTextColor
From ComputerCraft Wiki
| Changes the text color of the terminal. For ease of use, it is best to use the color codes provided in the colors API. Note that non-advanced systems only have black and white displays, though the text color may still be set to either of these four colors: black, white, gray and light gray. Also available as term.setTextColour for British spelling.
| |
| Syntax | term.setTextColor(number color code) |
| Returns | nil |
| Part of | ComputerCraft |
| API | term |
Examples
| Outputs the words "Hello World!" in color green: | |
| Code |
term.setTextColor( colors.green ) print( "Hello World! ") |