Expand description
Select Graphic Rendition (SGR) ANSI encoding, shared by every text-terminal encoder in this workspace.
Headless::format_styled (styled snapshots) and
retroglyph-recorder’s write_cast (asciicast export) both need “the SGR codes for this
Style,” and neither should carry its own copy.
Codes follow ECMA-48 5th ed. section 8.3.117: 30-37/40-47 for the standard foreground/
background colors, 90-97/100-107 for the bright variants, 38;5;n/48;5;n for 256-color
indices, and 38;2;r;g;b/48;2;r;g;b for 24-bit truecolor.
(https://www.ecma-international.org/publications-and-standards/standards/ecma-48/)