Skip to main content

Module terminal

Module terminal 

Source
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 Diff to a TTY-friendly string. Monochrome.
diff_to_terminal_color
Render a Diff with ANSI color codes for TTY output.
multi_to_terminal
Render a MultiReport to a TTY-friendly string. Monochrome.
multi_to_terminal_color
Render a MultiReport with 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.