term-colors (0.1.0)
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add term-colors@0.1.0 --registry forgejoAbout 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