Skip to content

term.pushColor

Ben Ratzlaff edited this page Mar 19, 2019 · 6 revisions

Saves the current text color state and changes the color of future text printed to the console.
Use term.popColor to restore the previous color setting.

term.pushColor(color)

Parameters

Example

-- set text to green
term.pushColor(term.green)
print("Hello World")

See Also

Availability

Premake 5.0.0 alpha 12 or later.

Clone this wiki locally