From: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Can we support apt's funky ANSI escapes?
Date: Wed, 20 Jul 2016 10:52:39 -0400 [thread overview]
Message-ID: <9c095f48-7d17-dcd8-2afd-6b0263d78264@live.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2098 bytes --]
Hi emacs-devel,
Ubuntu has a new wrapper around apt-get and apt-search called apt. As it runs it displays a progress bar, whose ANSI escapes confuse ‘M-x shell’; here's an example:
Removing libacl1-dev (2.2.52-3) ...
^[7Progress: [ 0%] [................................................................................................] ^[8^[7Progress: [ 25%] [########################........................................................................] ^[8^[7Progress: [ 50%] [################################################................................................] ^[8^[7Progress: [ 75%] [########################################################################........................] ^[8Processing triggers for man-db (2.7.5-1) ...
^[7^[[0;62r^[8^[[1A^[[J
And here's another one:
^[7^[[0;61r^[8^[[1ASelecting previously unselected package libacl1-dev.
(Reading database ... 359142 files and directories currently installed.)
Preparing to unpack .../libacl1-dev_2.2.52-3_amd64.deb ...
^[7Progress: [ 0%] [................................................................................................] ^[8^[7Progress: [ 16%] [#################...............................................................................] ^[8Unpacking libacl1-dev (2.2.52-3) ...
^[7Progress: [ 33%] [#################################...............................................................] ^[8^[7Progress: [ 50%] [################################################................................................] ^[8Processing triggers for man-db (2.7.5-1) ...
Setting up libacl1-dev (2.2.52-3) ...
^[7Progress: [ 66%] [#################################################################...............................] ^[8^[7Progress: [ 83%] [################################################################################................] ^[8
^[7^[[0;62r^[8^[[1A^[[J
Is this a bug that should be fixed on the ‘apt’ side (it shouldn't show the progress bar?), or can we support these escapes?
Clément.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next reply other threads:[~2016-07-20 14:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 14:52 Clément Pit--Claudel [this message]
2016-07-20 16:33 ` Can we support apt's funky ANSI escapes? Stefan Monnier
2016-07-20 17:05 ` Robert Weiner
2016-07-20 19:38 ` Clément Pit--Claudel
2016-07-22 20:54 ` Matthew Carter
2016-07-22 21:59 ` Clément Pit--Claudel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9c095f48-7d17-dcd8-2afd-6b0263d78264@live.com \
--to=clement.pitclaudel@live.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.