LukasKalbertodt / bunt

Simple macros to write colored and formatted text to a terminal. Based on `termcolor`, thus also cross-platform.
Apache License 2.0
224 stars 7 forks source link

Add support for width and precision parameters #5

Closed LukasKalbertodt closed 4 years ago

LukasKalbertodt commented 4 years ago

The std::fmt syntax allows to pass the width or precision via parameter. It looks like this:

println!("Hello {1:0$}!", 5, "x");

This is currently unsupported and leads to strange behavior or errors.