Skip to main content

term.popColor

Returns the current console color setting and restores the previously saved color setting saved by the last call of term.pushColor

term.popColor()

Parameters

None

Return Value

  • nil if the color stack is empty.
  • The current color setting. One of the color values listed in term.setTextColor

Example

local currentColor = term.popColor()
print("Last color setting was: " .. currentColor)

See Also

Availability

Premake 5.0.0 alpha 12 or later.