Skip to content

Cargo should use progress bar only on terminals that support it #5721

@gnzlbg

Description

@gnzlbg

Currently cargo seems to always use a progress bar, but for example the terminal that travis uses does not support it, such that every update to the progress bar creates a lot of noise: https://api.travis-ci.org/v3/job/403149958/log.txt

Cargo should detect whether the terminal allows modifying a line in place, and if it doesn't, it shouldn't really use a progress bar.

Also, there should be an environment variable that allows disabling the progress bar, but I couldn't find one in the cargo book. So maybe the docs need updating, or if there isn't one, we maybe should add one.


Also, kudos to whoever added the progress bar, been using it all day, and its really nice, so thanks for doing that!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-console-outputArea: Terminal output, colors, progress bar, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions