[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Can we support apt's funky ANSI escapes?
From: |
Clément Pit--Claudel |
Subject: |
Can we support apt's funky ANSI escapes? |
Date: |
Wed, 20 Jul 2016 10:52:39 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
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.
signature.asc
Description: OpenPGP digital signature
- Can we support apt's funky ANSI escapes?,
Clément Pit--Claudel <=