From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 03 13:53:01 2021 Received: (at 51454) by debbugs.gnu.org; 3 Nov 2021 17:53:01 +0000 Received: from localhost ([127.0.0.1]:41088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miKRY-0000ET-U0 for submit@debbugs.gnu.org; Wed, 03 Nov 2021 13:53:01 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:33337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miKRX-0000EB-BX for 51454@debbugs.gnu.org; Wed, 03 Nov 2021 13:52:59 -0400 Received: by mail-qt1-f180.google.com with SMTP id h16so1734757qtk.0 for <51454@debbugs.gnu.org>; Wed, 03 Nov 2021 10:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=elqS2MSeW5hZIyoX0YSEXtup/tUkaQzw67VXeUuXY9U=; b=WikwkrAsIgNkVjktMxIZUU5hqIv8thGEqF3TxIG2ctK7EPuVtzRKWJtPE3rzB7WHWE cZ5AKNsyDhFDgfsKnbC3sQ6CgRBM356IfxsugXMy9q3NdUWFQFK4iJmLMxnmq5btDVJN Lst0Njg1P8U3Mp8ZrY+ESMr3Dfd5OPFjwCwM+3hDqDhxIHgDKvg/p8QMoSKCO/f/Kzv8 v1DlLqeSMUc7ZNw9rDeuZACbsj3WRQafAuqRbOBc+tcEsCufpBrkRXFJTsKDrADBH59I 5C7y6YLpMK5kYwhQziAqQF4MUkr4fcB2LaIS9AM6HD+1IE5Zmw0FvVyYV3BTgjAMUvnD wdXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=elqS2MSeW5hZIyoX0YSEXtup/tUkaQzw67VXeUuXY9U=; b=lAtGzbvLF31XiElq2fb85MytX3XzBJXoS17sf1gVFiRd4FCk9FJkg9cUyTel7PtLi9 n0+E+mFeS+fvBH1vYkGCwf9MXWJN2o3GKwWjSVI+Y6302Zu3F4XzmW7/1zhUIrqC6FLX OQm+iWQdwhPb3CCjxOujuyex7kPAb5h3YXq6MLnTA8hXN/0TjK1sQNSxNJlVYFMvMdpm wfPmwKROoRKTWcND94Z9DaVN485W1mthx+CFfDZItApSbhOr9NfZ6phFYKS2w7Ak3ex4 f8BxvMS9SQnd95fCyHWxJ5SFjUetuzckOKXnLRKYo+wDiz+dsf88DSotoMS2KcxE9Bhz vX1A== X-Gm-Message-State: AOAM530LhWm1qAuBtrNhNBzw0xRc7c+qgxAhiUs8y6vbkMD0EIdoa9Jo 7Qp1r1sFpIMdSnfSFpi2e2f87XLyM7v7SRtLOmY= X-Google-Smtp-Source: ABdhPJyVZ9jwMp1+jIaUoNo1EQOg3ej7xW3AnV+IR6Oq3fDeWIZ6WgjlrhkJ7/SxzEOM1L3nnSXvyK/6t4Y0uLkrIYA= X-Received: by 2002:ac8:1e1a:: with SMTP id n26mr47925368qtl.335.1635961973790; Wed, 03 Nov 2021 10:52:53 -0700 (PDT) MIME-Version: 1.0 References: <867ddujwee.fsf@gmail.com> In-Reply-To: From: zimoun Date: Wed, 3 Nov 2021 18:52:42 +0100 Message-ID: Subject: Re: bug#51454: Progress bar in Org source blocks To: excalamus@tutanota.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51454 Cc: 51454 <51454@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Wed, 3 Nov 2021 at 18:05, wrote: > My goal has been to clean up the guix command output as seen in an org-ba= bel results block. I'm blogging about Guix using org-babel and Org's expor= t 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 comman= d were run in something like xterm. Based on feedback from people in the O= rg community, I thought there might be a way to toggle off certain characte= rs. 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 peopl= e, 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 ori= ginate upstream. Anything Guix might do would be a work around and work aro= unds 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