-
-
Notifications
You must be signed in to change notification settings - Fork 616
term.setTextColor
starkos edited this page Apr 10, 2021
·
7 revisions
This wiki is no longer being maintained.
Changes the color of future text printed to the console
term.setTextColor(color)
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
Print text in green
term.setTextColor(term.green)
print("Hello World")
Premake 5.0.0 alpha 12 or later.