Skip to content

pacman style progress bar #34

@FredBrockstedt

Description

@FredBrockstedt

I fail to make a pacman style progress bar with:
pacman = standard_bar_factory(borders="[]", tip=None, chars="Cc-", blank=" o")

It works sort of, but the dots move "away" from the "pacman".
Example:

[----------C  o  o  o  o  o  o  o  o  o  o]
[-----------C  o  o  o  o  o  o  o  o  o  ]
[------------C  o  o  o  o  o  o  o  o  o]

ideally the dots would stay in place, like this:

[----------C  o  o  o  o  o  o  o  o  o  o]
[----------c  o  o  o  o  o  o  o  o  o  o]
[-------------------------C  o  o  o  o]

The problem arises from how the padding (right part of the progress bar) is handled in bars.py.
My idea would be using some module tricks to scroll the padding. There is probably a better way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions