This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/term.setTextColor.md
2021-03-12 22:10:24 +01:00

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.