Skip to content

SGR (Text Styling)

Select Graphic Rendition (SGR) controls text styling: bold, italic, underline variants, colors, strikethrough, and other visual attributes. SGR sequences are the most commonly used escape codes — every TUI framework depends on them for rendering styled text. Support ranges from universal (bold, basic colors) to inconsistent (curly underline, hyperlinks).

17 features in this category

Support Matrix

FeatureGhosttyWezTermAlacrittyvt100xterm.jsKitty
256-color bg (SGR 48;5)
24-bit bg (SGR 48;2)
Blink (SGR 5)
Bold (SGR 1)
Faint/dim (SGR 2)
256-color fg (SGR 38;5)
24-bit fg (SGR 38;2)
Hidden/invisible (SGR 8)
Inverse video (SGR 7)
Italic (SGR 3)
Reset all (SGR 0)
Strikethrough (SGR 9)
Curly underline (SGR 4:3)
Dashed underline (SGR 4:5)
Dotted underline (SGR 4:4)
Double underline (SGR 21)
Underline (SGR 4)

Powered by Termless
Playwright for Terminals