|
FabGL
ESP32 Display Controller and Graphics Library
|
| void fabgl::Terminal::setForegroundColor | ( | Color | color, |
| bool | setAsDefault = true |
||
| ) |
Sets the foreground color.
Sets the foreground color sending an SGR ANSI code and optionally the default foreground color (used resetting the terminal).
| color | Current or default foreground color. |
| setAsDefault | If true the specified color is also used as default. |
Example:
Terminal.setForegroundColor(Color::White);