console-rs / indicatif

A command line progress reporting library for Rust
MIT License
4.47k stars 244 forks source link

Color % symbol in template #524

Closed eatradish closed 1 year ago

eatradish commented 1 year ago

Add percent% to convenience set % symbol color

Before:

{percent:>3.blue}" + &style("%").blue().to_string()

After:

 {percent%:>3.blue}"
djc commented 1 year ago

I don't think I want to add this to the code base, since I don't think it's an important concern whether the % appears colored or not.