Skip to content

How to change the color of complete #175

Description

@kcampion

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

Activity

  1. TobiTenno commented on Jun 24, 2018

    @TobiTenno

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

  2. dino-absoluto commented on Apr 12, 2019

    @dino-absoluto

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

  3. fredgan commented on Oct 26, 2020

    @fredgan

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions