Skip to main content
ansicode

SGR 5 — Blink (slow)

Blink the following text (≤ 150 blinks/minute).

Byte forms

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

\\x1b[\x1b[5m
\\033[\033[5m
\\e[\e[5m
ESC [ESC [ 5 m
hex1b 5b 35 6d

Description

Slow blink (the spec also defines SGR 6 'rapid blink', > 150/min, which xterm collapses to the same behavior). Disable with `\x1b[25m`. Most modern terminals honor it; alacritty historically did not blink the cell but rendered the attribute, and many users globally disable blink for accessibility. Avoid for any content that conveys meaning — blink is widely flagged as a vestibular / seizure trigger and may be suppressed by the OS or terminal.

Spec citation: ECMA-48 §8.3.117 (SGR parameter 5)

Examples

bash
printf '\033[5mblink\033[25m steady\033[0m\n'
python
print('\x1b[5mblink\x1b[0m')
go
fmt.Print("\x1b[5mblink\x1b[0m")
javascript
console.log('\x1b[5mblink\x1b[0m')
c
printf("\x1b[5mblink\x1b[0m\n");

Terminal support

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

Related sequences