Raxol.Terminal.ANSI.SGR.Formatter (Raxol v2.0.1)
View SourceSGR parameter formatting for the Raxol Terminal ANSI TextFormatting module. Handles SGR parameter parsing, formatting, and attribute handling.
Summary
Functions
Formats a style into SGR (Select Graphic Rendition) parameters. Returns a string of ANSI SGR codes.
Parses an SGR parameter and applies it to the given style.
Functions
@spec format_sgr_params(Raxol.Terminal.ANSI.TextFormatting.text_style()) :: String.t()
Formats a style into SGR (Select Graphic Rendition) parameters. Returns a string of ANSI SGR codes.
@spec parse_sgr_param(integer(), Raxol.Terminal.ANSI.TextFormatting.text_style()) :: Raxol.Terminal.ANSI.TextFormatting.text_style()
Parses an SGR parameter and applies it to the given style.