Raxol.Terminal.ANSI.SGR.Processor (Raxol Terminal v2.6.1)

Copy Markdown View Source

Optimized SGR (Select Graphic Rendition) processor for ANSI escape sequences. Uses compile-time optimizations and pattern matching for maximum performance.

Summary

Functions

Processes SGR parameters and applies them to the current style.

Processes already-parsed SGR parameters, as produced by Raxol.Terminal.Commands.CommandsParser.parse_params/1: a list mixing plain integer codes with colon-subparameter groups (nested lists, e.g. [4, 3] for the raw sequence 4:3) and nil placeholders for empty segments/slots.

Functions

handle_sgr(params, style)

Processes SGR parameters and applies them to the current style.

process_params(params, style)

Processes already-parsed SGR parameters, as produced by Raxol.Terminal.Commands.CommandsParser.parse_params/1: a list mixing plain integer codes with colon-subparameter groups (nested lists, e.g. [4, 3] for the raw sequence 4:3) and nil placeholders for empty segments/slots.