Raxol.Terminal.ANSI.SGR.Formatter (Raxol v2.0.1)

View Source

SGR 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

format_sgr_params(style)

Formats a style into SGR (Select Graphic Rendition) parameters. Returns a string of ANSI SGR codes.

parse_sgr_param(param, style)

Parses an SGR parameter and applies it to the given style.