What problem does it solve?
When a CLI command's output arrives as plain text with raw ANSI escape codes, you cannot judge whether colors, contrast, alignment, or background blocks actually look right in a real terminal. This Skill captures full-fidelity colored output and renders it to a PNG image so the visual result can be inspected directly instead of guessing from hex values.
Core Features & Use Cases
- ANSI-to-PNG rendering: Capture colored output from tools like delta, bat, eza, ripgrep, and git diff into an .ansi file, then render it to PNG via charmbracelet/freeze with a stdlib Python plus headless Chrome fallback.
- Per-tool capture recipes: Provides exact commands to force full color output (--color=always, CLICOLOR_FORCE=1, script pty wrapping) for common CLI tools.
- Background color matching: Renders against the real terminal background color so dark themes are judged under realistic contrast conditions.
- Use Case: After editing delta colors in gitconfig, capture
git diff | delta output, render it to PNG, and visually confirm the add/remove contrast is readable on your actual terminal background.
Quick Start
Capture the colored output of your CLI command to an .ansi file, then run scripts/render_ansi.sh with the input file, output PNG path, and your terminal background color, and read the resulting image.