--- Begin Message ---
Subject: |
[PATCH] guix: Show better progress bars. |
Date: |
Sun, 11 Dec 2022 19:00:59 +0100 |
Hi Guix!
The attached patch is a small improvement on our progress bars. Instead
of our cute ASCII art:
1.2MiB/s 00:04 [### ] 18.5%
We get something a little more smooth:
1.1MiB/s 00:04 ▕███ ▏ 17.1%
1.2MiB/s 00:05 ▕███▋ ▏ 20.7%
Using unicode characters that can represent 1/8 of a character width.
I used port-encoding to detect when the output supports unicode, but
maybe there's something more dedicated to figuring that out? When the
port encoding is not UTF-8, we fall back to the ASCII version.
Thoughts?
0001-guix-Show-better-progress-bars.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#59975] [PATCH v3 0/2] guix: Show better progress bars. |
Date: |
Sun, 19 Feb 2023 10:11:47 +0100 |
Finally pushed to master as 01334a61c7541d8ae29c5252e2e5b3ed7a59c552
and 189525412e3d803f3f77e15ec4a62aaa57f65a2d.
Le Sun, 12 Feb 2023 10:02:50 +0000,
Christopher Baines <mail@cbaines.net> a écrit :
> Julien Lepiller <julien@lepiller.eu> writes:
>
> > Here's the new version, it's now a small series. The first patch
> > sets unifont as default, so we can see the fancy bars in a TTY :)
> > The second hasn't changed.
> >
> > Julien Lepiller (2):
> > gnu: Use unifont by default in TTYs.
> > guix: Show better progress bars.
> >
> > gnu/services/base.scm | 7 +++----
> > guix/progress.scm | 45
> > ++++++++++++++++++++++++++++++++++++------- 2 files changed, 41
> > insertions(+), 11 deletions(-)
> >
> >
> > base-commit: 92755c6352fd967bc74d8e5354aad057d779b717
>
> I haven't tried this out, but the changes look good to me :)
>
> Thanks,
>
> Chris
pgpZXyKo9Tjrb.pgp
Description: Signature digitale OpenPGP
--- End Message ---