Crates.io | ransidsole |
lib.rs | ransidsole |
version | 0.1.0 |
source | src |
created_at | 2016-08-01 18:56:47.931221 |
updated_at | 2016-08-01 18:56:47.931221 |
description | ANSI colour and styling for terminal text. |
homepage | https://github.com/russmack/ransid |
repository | https://github.com/russmack/ransid.git |
max_upload_size | |
id | 5862 |
size | 10,141 |
Rust library providing ansi colour and style for the terminal.
Run the example:
cargo build --release
./target/release/ransid-example
Use the library:
let s = "I am black on green.".black().bg_green().underline();
println!("{}", s);
Or
let style = new_style().gray().bg_blue().bold().blink_slow();
println!(style.render("I am white on blue."));
BSD 3-Clause: LICENSE.txt