Skip to content

Commit

Permalink
Fixed main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Noriskky authored Aug 10, 2024
1 parent b4dd319 commit e36a78c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use libtermcolor::colors;

fn main() {
for (color_name, color_attributes) in colors::COLOR_MAP.iter() {
println!("{}{}{}:", color_attributes.background, color_name, libtermcolor::colors::reset());
println!(" Regular: {}{}{}{}", color_attributes.regular, color_name, color_attributes.reset, libtermcolor::colors::reset());
println!(" Bold: {}{}{}{}", color_attributes.bold, color_name, color_attributes.reset, libtermcolor::colors::reset());
println!(" Underline: {}{}{}{}", color_attributes.underline, color_name, color_attributes.reset, libtermcolor::colors::reset());
println!(" Background: {}{}{}{}", color_attributes.background, color_name, color_attributes.reset, libtermcolor::colors::reset());
println!("{}{}{}:", color_attributes.background, color_name, colors::reset());
println!(" Regular: {}{}{}{}", color_attributes.regular, color_name, color_attributes.reset, colors::reset());
println!(" Bold: {}{}{}{}", color_attributes.bold, color_name, color_attributes.reset, colors::reset());
println!(" Underline: {}{}{}{}", color_attributes.underline, color_name, color_attributes.reset, colors::reset());
println!(" Background: {}{}{}{}", color_attributes.background, color_name, color_attributes.reset, colors::reset());
}
}

0 comments on commit e36a78c

Please sign in to comment.