Skip to content

term.setTextColor

starkos edited this page Apr 10, 2021 · 7 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


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.

Clone this wiki locally