6 releases (stable)

2.0.3 Aug 23, 2024
2.0.2 Aug 21, 2024
2.0.0 Aug 19, 2024
0.1.2 Apr 1, 2024
0.1.0 Apr 1, 2024

#276 in Command-line interface

Download history 451/week @ 2024-08-17 82/week @ 2024-08-24 1/week @ 2024-08-31 44/week @ 2024-09-14 6/week @ 2024-09-21 3/week @ 2024-09-28

259 downloads per month

MIT license

255KB
64 lines

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")));
}

Dependencies