ansi-tools 0.1.0
ANSI colors and styles for terminal text, plus stripping escape sequences
Install
cargo add ansi-tools --registry rupm
In Ruststudio: Packages, search for ansi-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# ansi-tools
ANSI colors and styles for terminal text, plus stripping escape sequences
Add it with `rupm add ansi-tools` (or `cargo add ansi-tools --registry rupm`).
```rust
let s = ansi_tools::paint("error", &[ansi_tools::Style::Bold, ansi_tools::Style::Fg(ansi_tools::Color::Red)]);
assert_eq!(ansi_tools::strip(&s), "error");
```