anstream (1.0.0)
Published 2026-03-26 10:31:01 +00:00 by siennathesane
Installation
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add anstream@1.0.0About this package
IO stream adapters for writing colored text that will gracefully degrade according to your terminal's capabilities.
anstream
A simple cross platform library for writing colored text to a terminal.
A portmanteau of "ansi stream"
Specialized stdout and stderr that accept ANSI escape codes and adapt them
based on the terminal's capabilities.
anstream::adapter::strip_str may also be of interest on its own for low
overhead stripping of ANSI escape codes.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/license/mit)
at your option.
Contribute
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.
Dependencies
| ID | Version |
|---|---|
| anstyle | ^1.0.0 |
| anstyle-parse | ^1.0.0 |
| anstyle-query | ^1.0.0 |
| colorchoice | ^1.0.0 |
| is_terminal_polyfill | ^1.48 |
| utf8parse | ^0.2.2 |
| divan | ^0.1.16 |
| lexopt | ^0.3.1 |
| owo-colors | ^4.0.0 |
| proptest | ^1.7.0 |
| strip-ansi-escapes | ^0.2.1 |
| anstyle-wincon | ^3.0.5 |
Keywords
ansi
terminal
color
strip
wincon