node-progress icon indicating copy to clipboard operation
node-progress copied to clipboard

How to change the color of complete

Open kcampion opened this issue 7 years ago • 3 comments

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

kcampion avatar May 01 '18 09:05 kcampion

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

TobiTenno avatar Jun 24 '18 21:06 TobiTenno

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

dino-absoluto avatar Apr 12 '19 23:04 dino-absoluto

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.

fredgan avatar Oct 26 '20 11:10 fredgan