FabGL
ESP32 Display Controller and Graphics Library

◆ setBackgroundColor()

void setBackgroundColor ( Color  color,
bool  setAsDefault = true 
)

Sets 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);
Examples:
SSD1306_OLED/128x64/NetworkTerminal/NetworkTerminal.ino, VGA/Altair8800/Altair8800.ino, VGA/LoopbackTerminal/LoopbackTerminal.ino, and VGA/NetworkTerminal/NetworkTerminal.ino.

Definition at line 831 of file terminal.cpp.