FabGL
ESP32 VGA Controller and Graphics Library

◆ setBackgroundColor()

void fabgl::TerminalClass::setBackgroundColor ( Color  color,
bool  setAsDefault = true 
)

Set the background color.

Sets the background color sending an SGR ANSI code and optionally the default background color (used resetting the terminal).

Parameters
colorCurrent or default background color.
setAsDefaultIf true the specified color is also used as default.

Example:

   Terminal.setBackgroundColor(Color::Black);