[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51454: Progress bar in Org source blocks
From: |
zimoun |
Subject: |
bug#51454: Progress bar in Org source blocks |
Date: |
Wed, 3 Nov 2021 18:52:42 +0100 |
Hi,
On Wed, 3 Nov 2021 at 18:05, <excalamus@tutanota.com> wrote:
> My goal has been to clean up the guix command output as seen in an org-babel
> results block. I'm blogging about Guix using org-babel and Org's export
> functionality. I want the shell output as seen in the final html to be a
> reasonable approximation of the shell output a user would see if the command
> were run in something like xterm. Based on feedback from people in the Org
> community, I thought there might be a way to toggle off certain characters.
I understand. Somehow, the output of Guix CLI is dynamic where Org
babel captures static text (the last output). Therefore, maybe you
could demo using Gifs or something in this flavor.
> > And I do not think it is an issue about Guix. Instead, it is an issue about
> > dealing with outputs and Org-mode (Babel).
> >
> I agree that handling this in org makes sense. When I asked the Org people,
> they had said it was a Guix issue. And with what we found with NO_COLOR, fair
> enough. You also raise a good point, however, that the characters originate
> upstream. Anything Guix might do would be a work around and work arounds are
> probably best handled in Emacs.
Some special characters (as coloring) are from Guix and it should be
possible to turn them off. However, others are from progress-bars;
some from Guix itselfs, other from guile-git. Therefore, I am not
sure what you are asking, I mean, are you asking to be able to turn
off all the progress-bars?
> > for instance, something along these lines...
> >
> Thank you for the example. I was unaware of the Emacs function
> ansi-color-apply-on-region. The rest can probably be handled with
> replace-match.
Yes, my example was just... an example. I am sure one could come with
more complex filters for formatting adequately.
Cheers,
simon