Debian Codegraph @

debian/rust-vendor/anstream/README.md

raw
1 # anstream
2
3 > A simple cross platform library for writing colored text to a terminal.
4
5 *A portmanteau of "ansi stream"*
6
7 [![Documentation](https://img.shields.io/badge/docs-master-blue.svg)][Documentation]
8 ![License](https://img.shields.io/crates/l/anstream.svg)
9 [![Crates Status](https://img.shields.io/crates/v/anstream.svg)](https://crates.io/crates/anstream)
10
11 Specialized `stdout` and `stderr` that accept ANSI escape codes and adapt them
12 based on the terminal's capabilities.
13
14 `anstream::adapter::strip_str` may also be of interest on its own for low
15 overhead stripping of ANSI escape codes.
16
17 ## License
18
19 Licensed under either of
20
21 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <https://www.apache.org/licenses/LICENSE-2.0>)
22 * MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/license/mit>)
23
24 at your option.
25
26 ## [Contribute](../../CONTRIBUTING.md)
27
28 Unless you explicitly state otherwise, any contribution intentionally
29 submitted for inclusion in the work by you, as defined in the Apache-2.0
30 license, shall be dual-licensed as above, without any additional terms or
31 conditions.
32
33 [Crates.io]: https://crates.io/crates/anstream
34 [Documentation]: https://docs.rs/anstream