From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oBHxOYnMgmEy8QAAgWs5BA (envelope-from ) for ; Wed, 03 Nov 2021 18:53:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id /rKaNYnMgmGLQwAAB5/wlQ (envelope-from ) for ; Wed, 03 Nov 2021 17:53:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id ADD33162C0 for ; Wed, 3 Nov 2021 18:53:13 +0100 (CET) Received: from localhost ([::1]:48616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miKRk-0003X6-P6 for larch@yhetil.org; Wed, 03 Nov 2021 13:53:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miKRa-0003Ni-SY for bug-guix@gnu.org; Wed, 03 Nov 2021 13:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miKRa-0001ig-JV for bug-guix@gnu.org; Wed, 03 Nov 2021 13:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1miKRa-0000Ei-D2 for bug-guix@gnu.org; Wed, 03 Nov 2021 13:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51454: Progress bar in Org source blocks Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 03 Nov 2021 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51454 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: excalamus@tutanota.com Received: via spool by 51454-submit@debbugs.gnu.org id=B51454.1635961981901 (code B ref 51454); Wed, 03 Nov 2021 17:53:02 +0000 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: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 51454 <51454@debbugs.gnu.org> Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635961993; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=elqS2MSeW5hZIyoX0YSEXtup/tUkaQzw67VXeUuXY9U=; b=oHfGddj1K8sKtVzUr0S7YtkDh3f6DUBcITmf/mv24BvFCzq61PExcd0zTfWwhWmBpulqUG VB8LJ32sjJN0pfCiVle4fPRMQHStNcmum6B39/5AZjKOlImrPg0un7McsE+YsHSfpBEQVj j4Jf3ylkRAKoNt1REVYNb5mkmIw/dDXMtyG88YhlW4ufe6fTPmDN2VXfJCimh3DR8wsKw9 81wKn61osycFfRPgsOg8UKwnOHhLMvW1EdOA5P0iCrl60szecCVJ+ArJpQS4lvduWmKt49 vEcTXfANzbso0fnaW/wyLGaN3vrSJGnyQIe5PTZU5/AZYivlZ3MHJyRmtn5qFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635961993; a=rsa-sha256; cv=none; b=pXFPcH1BFL/dc86ugQ8lxC4nUwzrBhsk9DG7QZRFR9EP08w8OhKnU2FeioBG4s3/1vI55X EPll5pGSchV8E6ErLQKu/6xjfZX1VwuBxl/1HaqmjCDKiLJn7c8s0MZFEpVciue1dE7rhN 0uhGv8t5G3bp5fB2KawJek1J8e3XG+ADzaj/L6UhPuWra0WCSucWQsd5uwKmMaj2pgCM9V 2uDgjgWrM0mDfMIHFzvFvf5OpY0duOuEGgbWnxoAagR2c4rzkHtyqzIc0vBD4CbnxgQyIR uUq1ST1zL6nap5naRsVCDMU9Qm64mBmWXOZgfP8Lk2wqSwP9R1QlXjElvSzH+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WikwkrAs; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WikwkrAs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: ADD33162C0 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: Xt7Y/5suP8eT 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