Skip to content

term.popColor

starkos edited this page Apr 10, 2021 · 4 revisions

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


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.

Clone this wiki locally