Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bar fractions with UTF-8 #27

Open
moshiba opened this issue Apr 8, 2020 · 1 comment
Open

Support bar fractions with UTF-8 #27

moshiba opened this issue Apr 8, 2020 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@moshiba
Copy link
Owner

moshiba commented Apr 8, 2020

in short, use these

█
▉
▊
▋
▌
▍
▎
▏

to characterize small fractions of progress.

We can achieve this with the ICU library,
or with libraries like <locale> and <codecvt>.

The code points we're looking for is 0x2588 -0x258F

@moshiba moshiba added the enhancement New feature or request label Apr 8, 2020
@moshiba
Copy link
Owner Author

moshiba commented Aug 16, 2020

These 3-byte characters require variable-length output buffer which is slow.
Even if we pre-allocate a large-enough buffer these characters make reusing buffer sections hard, sections such as remaining time estimation and step counter will need to be pushed back.
I suggest falling back to plain # instead of UTF-8 bar fractions, including full bars:

@moshiba moshiba added the question Further information is requested label Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant