FYI ANSI
This crate exports two simple compile-time ANSI formatting macros — csi and
ansi — as well as shortcut helpers for bold, dim, and underline.
Examples
use ;
// The `csi` macro generates (only) the ANSI formatting sequence.
assert_eq!;
// The `ansi` macro generates formatted content strings.
assert_eq!;
The dim, bold, and underline macros are only shortcuts, but can
help declutter your code when there's only the one style being toggled.
use ;
// Same as with `ansi`, they terminate with a blanket reset by default.
assert_eq!;
assert_eq!;
assert_eq!;
// And same as `ansi`, the ">" modifier will make them terminate more
// selectively instead.
assert_eq!;
assert_eq!;
assert_eq!;