From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35129: Unsupported escape sequences for progress in shell Date: Sat, 06 Apr 2019 23:53:01 +0300 Organization: LINKOV.NET Message-ID: <877ec6c0uq.fsf@mail.linkov.net> References: <87lg0qx2ab.fsf@mail.linkov.net> <8736mx4hi2.fsf@mail.linkov.net> <87r2ahornd.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27893"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35129@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 06 23:47:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCt9e-00076r-WB for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Apr 2019 23:47:15 +0200 Original-Received: from localhost ([127.0.0.1]:59374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCt9e-0001e0-0y for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Apr 2019 17:47:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCt9T-0001cQ-LP for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 17:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCt9S-0005BJ-Ja for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 17:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33998) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCt9S-0005B2-DH for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 17:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hCt9S-0005Zw-AG for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 17:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Apr 2019 21:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35129 X-GNU-PR-Package: emacs Original-Received: via spool by 35129-submit@debbugs.gnu.org id=B35129.155458721621425 (code B ref 35129); Sat, 06 Apr 2019 21:47:02 +0000 Original-Received: (at 35129) by debbugs.gnu.org; 6 Apr 2019 21:46:56 +0000 Original-Received: from localhost ([127.0.0.1]:47541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCt9M-0005ZV-BC for submit@debbugs.gnu.org; Sat, 06 Apr 2019 17:46:56 -0400 Original-Received: from cichlid.maple.relay.mailchannels.net ([23.83.214.36]:25218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCt9J-0005ZL-OH for 35129@debbugs.gnu.org; Sat, 06 Apr 2019 17:46:54 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5D35C124DBF; Sat, 6 Apr 2019 21:46:52 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a41.g.dreamhost.com (unknown [100.96.20.50]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C19CA124DA7; Sat, 6 Apr 2019 21:46:51 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a41.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Sat, 06 Apr 2019 21:46:52 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Squirrel-Decisive: 6d877b487a8c8097_1554587211997_2177635780 X-MC-Loop-Signature: 1554587211997:606576059 X-MC-Ingress-Time: 1554587211996 Original-Received: from pdx1-sub0-mail-a41.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a41.g.dreamhost.com (Postfix) with ESMTP id 6970A800E9; Sat, 6 Apr 2019 14:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=1s9CgvjdxM8oRuJsZi3XI0h8BwI=; b= Jz4D5SoFnlvKQ3aBYSntt2BLThrTE8OPrKpk81CsPBpcPbrlY5RLsdkYC3sgOoYM UeYD1KQViQm/N9naHcKjR1kPmVRtPGEIFf9BE7D/UMUdpE3dSRJ2IxANIXHAoDSy ZBEcZjBiYPVMRmxJ++nskuZ1yHoKR0yvopZj+bf7lAw= Original-Received: from mail.jurta.org (m91-129-99-202.cust.tele2.ee [91.129.99.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a41.g.dreamhost.com (Postfix) with ESMTPSA id E7624800E4; Sat, 6 Apr 2019 14:46:49 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a41 In-Reply-To: <87r2ahornd.fsf@gmx.de> (Michael Albinus's message of "Fri, 05 Apr 2019 09:08:54 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddruddtgddtfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecuffhomhgrihhnpehorhgvmhgrtghsrdgtohhmnecukfhppeeluddruddvledrleelrddvtddvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleelrddvtddvpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepmhhitghhrggvlhdrrghlsghinhhushesghhmgidruggvnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157286 Archived-At: >>> Some escape sequences are unhandled in shell mode. >>> Most often they appear when running `apt install' >>> that shows its progress bar that is supposed to stay >>> on the same line, but spreads over several lines, >>> so the output looks like a mess (where ^[7 and ^[8 >>> are escape sequences currently still unhandled): >> >> After more research, I found an interesting post >> https://oremacs.com/2019/03/24/shell-apt/ >> that proposes a promising way to handle >> these escape sequences. >> >> So maybe this should be customizable? > > Looks interesting. However, we have `progress-reporter'. The code from > above shall be made available via this. I'm not sure if we can provide min-value/max-value for make-progress-reporter. If not, then it uses spinning/pulsing. It seems progress-reporter doesn't support arbitrary strings such as that come from underlying process like ^[7Progress: [ 0%]^[8 > This would also improve Tramp; there are requests to integrate the > progress reporter from external commands. Could you show an example of a progress reporter from an external command. Do they use arbitrary strings?