Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the color of complete #175

Open
kcampion opened this issue May 1, 2018 · 3 comments
Open

How to change the color of complete #175

kcampion opened this issue May 1, 2018 · 3 comments

Comments

@kcampion
Copy link

kcampion commented May 1, 2018

I tried with {complete: '\x1b[32m|\x1b[0m', incomplete: '-'} where | is the green character, but the result is not good: [||||||[32m|--------------]

@TobiTenno
Copy link

you can wrap it with something like this: https://www.npmjs.com/package/colors
but you're still going to get 32m in there

@dino-absoluto
Copy link

Also ran into this issue, gave up and made my own:
@dinoabsoluto/flex-progress.
Hope someone finds it useful.

@fredgan
Copy link

fredgan commented Oct 26, 2020

I try to modify the color of complete , for example
bar = new ProgressBar(':current/:total :bar :percent :elapseds', {
total: 100,
complete: green,
incomplete: red,
});

then, we can aqurie more informations about the color change of complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants