Skip to main content

Module ansi_parse

Module ansi_parse 

Source
Expand description

ANSI escape code → ratatui Span conversion.

Converts ANSI color/style escape sequences into native ratatui Spans so tool output (cargo, git, pytest, etc.) renders with proper styles in the fullscreen TUI instead of showing raw escape codes.

Uses ansi-to-tui v8 for parsing, with a fast path that skips lines without escape codes entirely.