polychrome

Crates.iopolychrome
lib.rspolychrome
version2.0.3
sourcesrc
created_at2024-04-01 14:47:06.95646
updated_at2024-08-23 19:26:03.99062
descriptionA crate for printing colored and underlined text in the terminal.
homepage
repository
max_upload_size
id1192595
size261,844
Elías Leguizamón (EliasLeguizamon123)

documentation

https://docs.rs/polychrome/latest/polychrome/

README

Polychrome

drawing

Polychome is a crate for printing styled text in your terminal.

Usage

Just add to your Cargo.toml

[dependencies]
polychrome = "2.0.2"

an then just use it!

use polychrome::ColorPrintExt;

fn main() {
    println!("{}", "Hello, world!".color(255, 0, 0).underline(None));
    println!("{}", "Hello, world!".color(0, 0, 255).underline(Some("stripe")));
}
Commit count: 0

cargo fmt