term-colors (0.1.0)

Published 2026-09-19 12:59:16 -03:00 by caio in projetos-rust/term-colors

Installation

[registries.forgejo]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add term-colors@0.1.0 --registry forgejo

About this package

A tiny enum of ANSI terminal colors

term-colors

A tiny enum of ANSI terminal colors.

use term_colors::Color;

println!("{}", Color::Red.paint("error!"));

let color: Color = "green".parse().unwrap();
println!("{}ok{}", color, Color::Reset);

Installation

Published on the private Forgejo registry:

[dependencies]
term-colors = { version = "0.1", registry = "forgejo" }

Development

cargo fmt --check
cargo clippy -- -D warnings
cargo test
cargo run --example basic

License

MIT — see LICENSE-MIT.

Keywords

terminal color ansi
Details
Cargo
2026-09-19 12:59:16 -03:00
2
MIT
3.9 KiB
Assets (1)
Versions (1) View all
0.1.0 2026-09-19