npkgz / cli-progress

:hourglass: easy to use progress-bar for command-line/terminal applications
https://www.npmjs.com/package/cli-progress
MIT License
1.11k stars 84 forks source link

Compatibility with gradient-string package #154

Closed ghost closed 11 months ago

ghost commented 11 months ago

Hi there. I've been trying to apply a custom style to the progress bar using gradient-string and it's been quite difficult. So far I've accomplished to style my own personal variables, but the bar itself has been quite a challenge.

You said at a closed issue that styling libraries can be used, any tips for how to do this or this particularly library isn't fully compatible? I've seen a couple examples here and there using chalk, but the colors from chalk are very limited to me.

Thank you.

AndiDittrich commented 11 months ago

you can provide custom bar formatters which are responsible for the bar rendering. but any kind of "animation" would require a deep integration into the code...

ghost commented 11 months ago

Yeah, I thought so. I couldn't accomplish what I wanted in an easy way, but thanks anyway. I'm gonna close the issue.