canonical / canonical/craft-cli
Have a sub-char resolution in the progress bar
Open
Status: Triaged
Type: Enhancement
- Dominant language
- Python
- Stars
- 16
- Forks
- 27
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 12
Description
We can have a progress bar with more resolution than the current one (per char).
That would be using characters that represent "eights of a block":
```
>>> chars = (' ', '▏', '▎', '▍', '▌', '▋', '▊', '▉', '█')
>>> for c in chars:
... print(unicodedata.name(c))
...
SPACE
LEFT ONE EIGHTH BLOCK
LEFT ONE QUARTER BLOCK
LEFT THREE EIGHTHS BLOCK
LEFT HALF BLOCK
LEFT FIVE EIGHTHS BLOCK
LEFT THREE QUARTERS BLOCK
LEFT SEVEN EIGHTHS BLOCK
FULL BLOCK
```
Contributor guide
Assessment
This issue has not been assessed yet.