Sunbeam Studios

Our open-source projects, here for you!

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 = true
cargo add anstream@1.0.0

About 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"

Documentation License Crates Status

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

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
Details
Cargo
2026-03-26 10:31:01 +00:00
0
MIT OR Apache-2.0
28 KiB
Assets (1)
Versions (1) View all
1.0.0 2026-03-26