A dead simple ANSI terminal color painting library for Rust.
```rust use yansi::Paint;
print!("{} light, {} light!", Paint::green("Green"), Paint::red("red").underline()); ```
See the documentation for more.
Several terminal coloring libraries already exist for Rust ([ansi_term
],
[colored
], [term_painter
], to name a few), begging the question: why yet
another? Here are a few reasons for yansi
:
term_painter
], but unlike [ansi_term
], any type implementing
Display
can be stylized, not only strings.Paint
.yansi
is pretty short.All that being said, this library borrows the general API of existing libraries
as well as plenty of code from [ansi_term
].
yansi
is licensed under either of the following, at your option: