Expand description
SGR (Select Graphic Rendition) utility functions.
Extracted from backend.rs for reuse by the TUI diff engine and
StructuredBackend. Provides combined SGR sequence emission and
individual color parameter formatting.
Functionsยง
- write_
bg_ params - Append background color parameters to an in-progress SGR sequence.
- write_
combined_ sgr - Emit a single combined SGR sequence:
\x1b[0;...mResets all attributes then applies modifiers, fg, and bg in one escape. - write_
fg_ params - Append foreground color parameters to an in-progress SGR sequence.
Color::Reset omitted (already handled by the leading
0reset).