LukasKalbertodt / bunt

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

Community Feedback #1

Open LukasKalbertodt opened 4 years ago

LukasKalbertodt commented 4 years ago

Do you have any opinions, complaints, suggestions, ideas, ... about this library or its syntax? Let me know :)

luciusmagn commented 4 years ago

I like, it slaps, I use it to color stuff in my Gopher client that I'm currently working on. Haven't tried on Windows, but Linux experience is neat.

Berrysoft commented 3 years ago

Could the color and other styles be specified by argument? For example,

bunt::println!("{$*}error:{/$}", Color::Red, ty);

In that case I could calculate the color at runtime.

LukasKalbertodt commented 3 years ago

@Berrysoft That's an interesting idea! I opened #21. Not sure if I can start working on it anytime soon, though.

mirryi commented 3 years ago

Thanks for the great library!

I'm using your library for one of my projects, but I wanted leveled logging. So I cobbled together this crate, which provides some convenience macros (error!, info!, debug!, etc.) over bunt::writeln!.

Not really sure if this functionality is appropriate to make a PR for, since it's not a proper log implementation and the level/output target configuration uses a global. But it's convenient, for what it's worth. Hopefully someone else looking for something similar might find it useful.

LukasKalbertodt commented 3 years ago

@Dophin2009 Thanks for letting me know. I think this functionality should certainly live outside of bunt itself, but as a standalone crate, it's great!