Skip to main content

term.getTextColor

Retrieves the current color setting of text printed to the console

term.getTextColor()

Parameters​

None

Return Value​

The current color setting. One of the color values listed in term.setTextColor

Example​

local currentColor = term.getTextColor()
print("Current color setting is: " .. currentColor)

See Also​

Availability​

Premake 5.0.0 alpha 12 or later.