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.getTextColor.md

28 lines
564 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
Retrieves the current color setting of text printed to the console
```lua
term.getTextColor()
```
### Parameters ###
None
### Return Value ###
The current color setting. One of the color values listed in [term.setTextColor](term.setTextColor.md)
### Example ###
``` lua
local currentColor = term.getTextColor()
print("Current color setting is: " .. currentColor)
```
### See Also ###
* [term.setTextColor](term.setTextColor.md)
* [term.pushColor](term.pushColor.md)
* [term.popColor](term.popColor.md)
### Availability ###
Premake 5.0.0 alpha 12 or later.