Skip to main content
ansicode

SGR 100–107 — Bright background color

Bright variants of the 8 basic background colors.

Byte forms

Every common string-literal form so you can paste-and-search either direction.

\\x1b[\x1b[101m (bright red bg, 100–107)
\\033[\033[101m
\\e[\e[101m
ESC [ESC [ 1 0 1 m
hex1b 5b 31 30 31 6d

Description

Bright background equivalents of 40–47. 100 bright black, 101 bright red, ..., 107 bright white. Same aixterm extension as 90–97 for foreground.

Spec citation: aixterm color extension

Examples

bash
for c in 100 101 102 103 104 105 106 107; do printf "\033[${c}m  \033[0m"; done; echo
python
for c in range(100, 108): print(f'\x1b[{c}m  \x1b[0m', end='')
go
for c := 100; c <= 107; c++ { fmt.Printf("\x1b[%dm  \x1b[0m", c) }
javascript
for (let c = 100; c <= 107; c++) process.stdout.write(`\x1b[${c}m  \x1b[0m`)
c
for (int c = 100; c <= 107; c++) printf("\x1b[%dm  \x1b[0m", c);

Terminal support

xterm
yes
Linux console (fbcon)
yes
macOS Terminal.app
yes
iTerm2
yes
Windows Terminal
yes
cmd.exe / ConPTY
yes
kitty
yes
alacritty
yes
WezTerm
yes
Ghostty
yes
GNOME Terminal
yes
Konsole
yes
tmux
no
GNU screen
no

Related sequences

In the family cookbook

SGR cookbook · 2. 16-color basic — `\x1b[31m` and friends