GNU bug report logs -
#59975
[PATCH] guix: Show better progress bars.
Previous Next
Reported by: Julien Lepiller <julien <at> lepiller.eu>
Date: Sun, 11 Dec 2022 18:03:01 UTC
Severity: normal
Tags: patch
Done: Julien Lepiller <julien <at> lepiller.eu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
Julien Lepiller <julien <at> lepiller.eu> skribis:
> Le Fri, 13 Jan 2023 18:07:42 +0100,
> Ludovic Courtès <ludo <at> gnu.org> a écrit :
[...]
>> It would be good to check in xterm, Linux console with some default
>> font, and GNOME/Xfce terminals with defaults.
>>
>> (Works for me in xterm and in Emacs, FWIW.)
>
> I think it's pretty common to have these characters, since they are
> used by many other projects. However, testing on a tty, I can only see
> the filled characters, but not the semi-filled ones, so I get something
> like:
>
> ?███? ?
>
> What do you think?
Maybe use ASCII when $TERM is “linux”?
Though again that probably depends on the font, not on the terminal
type, and that you cannot guess.
> Attached v2.
>
> From 7e4c8fbcc49068ce5a9a592d8daf7b0039ce6680 Mon Sep 17 00:00:00 2001
> From: Julien Lepiller <julien <at> lepiller.eu>
> Date: Sun, 11 Dec 2022 18:51:13 +0100
> Subject: [PATCH] guix: Show better progress bars.
>
> Style provides information on the characters to use before and after the
> progress bar content (`[` and `]` for the ascii style), as well as the
> character for filled step (`#` for ascii style). When supported, it
> provides intermediate steps. This is used for unicode style, to show
> better precision.
>
> * guix/progress.scm (<progress-bar-style>): New record type.
> (ascii-bar-style, unicode-bar-style): New variables.
> (progress-bar): Draw progress depending on style. When supported, use
> unicode style. Fall back to ascii style.
LGTM.
Maybe send a heads-up on guix-devel to see if someone has something to
say about the ability to display those glyphs, wait a few more days, and
push if there are no objections?
Thanks,
Ludo’.
This bug report was last modified 2 years and 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.