4 releases
0.2.2 | Mar 25, 2023 |
---|---|
0.2.1 | Mar 25, 2023 |
0.2.0 | Mar 25, 2023 |
0.1.0 | Mar 25, 2023 |
#631 in Command-line interface
24KB
310 lines
colorfully-rs
your terminal colorfully!
use colorfully::*;
fn main() {
println!("{}", "black".reset().bold());
println!("{}", "red".red());
println!("{}", "green".green().under_line());
println!("{}", "yellow".yellow());
println!("{}", "blue".blue().light());
println!("{}", "cyan".cyan());
println!("{}", "purple".purple().italic());
println!("{}", "gray".gray());
println!();
println!("{}", "back ground black".bg_black().bold());
println!("{}", "back ground red".bg_red());
println!("{}", "back ground green".bg_green().under_line());
println!("{}", "back ground yellow".bg_yellow());
println!("{}", "back ground blue".bg_blue().light());
println!("{}", "back ground cyan".bg_cyan());
println!("{}", "back ground purple".bg_purple().italic());
println!("{}", "back ground gray".bg_gray());
}
use
$cargo add colorfully