Available on crate feature
terminal only.Expand description
Terminal pretty-printer. Available with the terminal feature.
Pure function over a Report, Diff, or MultiReport. No I/O,
no global state, no extra dependencies. ANSI color is opt-in so the
caller decides based on their own TTY detection.
Functionsยง
- diff_
to_ terminal - Render a
Diffto a TTY-friendly string. Monochrome. - diff_
to_ terminal_ color - Render a
Diffwith ANSI color codes for TTY output. - multi_
to_ terminal - Render a
MultiReportto a TTY-friendly string. Monochrome. - multi_
to_ terminal_ color - Render a
MultiReportwith ANSI color codes for TTY output. - to_
terminal - Render a report to a TTY-friendly string. Monochrome.
- to_
terminal_ color - Render a report with ANSI color codes for TTY output.