833 B
833 B
Changes the color of future text printed to the console
term.setTextColor(color)
Parameters
color
- One of:
nil
(default color)- term.black
- term.blue
- term.green
- term.cyan
- term.red
- term.purple
- term.brown
- term.lightGray
- term.gray
- term.lightBlue
- term.lightGreen
- term.lightCyan
- term.lightRed
- term.magenta
- term.yellow
- term.white
For specific purposes the following can be used/overridden:
- term.warningColor
- term.errorColor
- term.infoColor
Examples
Print text in green
term.setTextColor(term.green)
print("Hello World")
See Also
Availability
Premake 5.0.0 alpha 12 or later.