canonical / canonical/craft-cli

Have a sub-char resolution in the progress bar

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.