Crates.io | colorfully |
lib.rs | colorfully |
version | 0.2.2 |
source | src |
created_at | 2023-03-25 01:29:43.869407 |
updated_at | 2023-03-25 02:01:07.949724 |
description | your terminal colorfully! |
homepage | |
repository | https://github.com/5-23/colorfully-rs/ |
max_upload_size | |
id | 819839 |
size | 24,653 |
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());
}
$cargo add colorfully