Colors are set using SGR commands (like `\e[10;20;30m`). The following tables list the SGR codes to use. Selected colors are used for any new text entered, as well as for empty space when using line and screen clearing commands. The configured default colors can be restored using SGR 39 for foreground and SGR 49 for background.
The actual color representation depends on a color theme which can be selected in Terminal Settings.