From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 0A+qGxZLXWYxYAAAA41jLg (envelope-from ) for ; Mon, 03 Jun 2024 06:48:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cKFTGBZLXWYM4wAA62LTzQ (envelope-from ) for ; Mon, 03 Jun 2024 06:48:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=OYrUYS8e; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717390102; a=rsa-sha256; cv=none; b=Kg2Wxe2i9h5MhuKCL3VQN4wZeC1Iwf/ky2fHx97/MWVKyGz8c2pAAt15sfGElpah6ZCOkm tm4rwqatMomFgS8hE4ltKRa6GkGXfy0CgDZolX8ZW3sqoH54jIpFujwzcKemiVRO3r5pCM tNvJCPTa4U2HKkdT1ox7dyX6EugIt3tlOvii3n2t2NinFNBlcqc53lzfF1KRLeT6kslyvk tsfM036dTufislqAczHK326wlUSE1biCReugzAIQjvLxR9GjjNjacF9+gJXwe8ICYf2N/7 zi+oRgG+IFF0uyMjkAblrBdvCQFtb15mBorCwQ9x1Vy+78h06aFvuhZZZwiU5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=OYrUYS8e; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717390102; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=F2ILo9toFSCuKWFPTR8fW7+vxRaknJjmXwROBs7lI8s=; b=A7q8kHMFbqJeMR4HPi/QR26NboO0EJ17fTLbRbfC+Tsng4tMgkxpM13eqbTpUf5tFhsPiV BI6ClzJpNpuazmmyzHOjJXoZYmNHhQz2gHvA0N0XKMurww9HAfl8rS3+Y6/o2+fg69F4v0 0cf8VXj23VqoWN+GRtYZ+u/0fB5rKV78HNuRBWKnA2289MBCQoE6Fk3HfOi5RWyku+glDZ eOBGjmOvzKbstfCerSTWabvLT3koYP0cnmjWC1OvNcqzBTdzGtw0SNeke+Co44RlZXxutF g99z+LSkh3Ca1Jn066QTLetS+2WozNGmwtpXDo6hSm0B6g3hlH47YtqvnJS7rA== 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 526306AEBB for ; Mon, 3 Jun 2024 06:48:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDxxd-0000Y1-SD; Sun, 02 Jun 2024 23:02:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDxxc-0000Xh-Uh for guix-patches@gnu.org; Sun, 02 Jun 2024 23:02:13 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sDrgE-00009T-GK for guix-patches@gnu.org; Sun, 02 Jun 2024 16:19:53 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDrgQ-0002pr-SF for guix-patches@gnu.org; Sun, 02 Jun 2024 16:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62056] Custom progress reporter for scripts/substitute.scm References: <6a78ee837fe579d6b1beaeda54beddba3c05fd2e.1678290800.git.mirai@makinata.eu> In-Reply-To: <6a78ee837fe579d6b1beaeda54beddba3c05fd2e.1678290800.git.mirai@makinata.eu> Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Jun 2024 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62056 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62056@debbugs.gnu.org Received: via spool by 62056-submit@debbugs.gnu.org id=B62056.171735956910793 (code B ref 62056); Sun, 02 Jun 2024 20:20:02 +0000 Received: (at 62056) by debbugs.gnu.org; 2 Jun 2024 20:19:29 +0000 Received: from localhost ([127.0.0.1]:37092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDrfs-0002ny-Og for submit@debbugs.gnu.org; Sun, 02 Jun 2024 16:19:29 -0400 Received: from mail-108-mta196.mxroute.com ([136.175.108.196]:43721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDrfq-0002no-7P for 62056@debbugs.gnu.org; Sun, 02 Jun 2024 16:19:27 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta196.mxroute.com (ZoneMTA) with ESMTPSA id 18fda9b1bb8000e2b6.001 for <62056@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 02 Jun 2024 20:19:09 +0000 X-Zone-Loop: 8bc7844884d3ff1559633cb122399dec982b4b065a26 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=F2ILo9toFSCuKWFPTR8fW7+vxRaknJjmXwROBs7lI8s=; b=OYrUYS8efp3sZW31X6mlANyE4G r5GRNeq0kBIT62gAX/5B9+JAKrjWVVgtkVnjkDibMMXM32Gne9+ReN+NibaR5YD/Pmj4zYtfwjJ5p vHteFfK41heStnmedxx3p/K45XEh3IqZsbYA8icvq9/nwrx/N8xvxyZ5c6vhQnzW8/Bj6di37p1JG HCAt5j/344WuiFbnOMYPBhA6Y5DRsyIjYmTiquPaZzD3o4fJFqvCzCrLG/Or9U3Ny1rL4JJLQT3v8 NZ3vo4W93FBPwlCQdbrwgKqeQ5Su0zBSRK+g55vp3qHfJiXRV/V/QBT4O4zO8fACjsM85//xw48zH aqmcESOw==; From: Richard Sent Date: Sun, 02 Jun 2024 16:19:02 -0400 Message-ID: <87bk4jdrnt.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 526306AEBB X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.02 X-Spam-Score: -6.02 X-TUID: gk0QhthJvVEu I started investigating this issue for the substitutes script specifically and it's more challenging than a straightforward isatty? call. I opened an issue for that here: https://issues.guix.gnu.org/71299 I agree that modifying erase-current-line isn't the right solution. I think it's the responsibility of the caller to ensure that the output port is appropriate. -- Take it easy, Richard Sent Making my computer weirder one commit at a time.