Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #256674
| From | davidson <davidson@freevolt.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | apt colored output (was Re: Buster => Bullseye: packages kept back) |
| Date | 2023-04-03 08:00 +0200 |
| Message-ID | <Gglot-h0dw-3@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <GdTcZ-fr9O-3@gated-at.bofh.it> <GdTwm-frh1-1@gated-at.bofh.it> <GdULL-fsdy-3@gated-at.bofh.it> <GdVHP-fsOD-3@gated-at.bofh.it> <Geb0d-fCge-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 28 Mar 2023 davidson wrote:
Replying to myself.
> According to [console_codes(4), under section ECMA-48 Set Graphics
> Rendition], [this value] sets "blink off"
>
> # apt -o "APT::Color::Highlight=^[[25m" search nethack
>
> For me, this produces text in the default style (no highlights, no
> colors).
This surprised me.
But it should not have, since the config option specified above just
tells apt to prefix the package name with a different PRETTIFY escape
sequence in output like
<PRETTIFY>slashem-x11<RESET ATTRIBS>/stable 0.0.7E7F3-10 amd64
variant of Nethack (X11 window port)
One that happens to set the blink display attribute off. Vacuously, of
course, unless you happen to have "blink on" set.
Might as well replace 25 ("blink off") with any of
22 set normal intensity
24 underline off
25 blink off
27 reverse video off
or just
0 reset all attributes to their defaults
or nothing at all, ie
APT::Color::Highlight=^[[m
which is equivalent to
APT::Color::Highlight=^[[0m # reset all attributes to their defaults
This solves the problem of undesired colors, but not the emission of
unwanted escape sequences. And so there are bug reports like this:
#1010806 - apt: Avoid color output on monochrome terminals
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010806
--
"What is your pronoun?" he inquired. "I have no pronoun," I answered,
hoping I knew his meaning. "What is your cog?" "My cog?" "Your sur
noun." "I haven't got that either."
-- Flann O'Brien, _The Third Policeman_
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-26 11:20 +0200
Re: Buster => Bullseye: packages kept back Jeffrey Walton <noloader@gmail.com> - 2023-03-26 11:30 +0200
Re: Buster => Bullseye: packages kept back davidson <davidson@freevolt.org> - 2023-03-26 13:20 +0200
Re: Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-26 15:00 +0200
Re: Buster => Bullseye: packages kept back davidson <davidson@freevolt.org> - 2023-03-27 11:10 +0200
Re: Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-27 11:30 +0200
Re: Buster => Bullseye: packages kept back David Wright <deblis@lionunicorn.co.uk> - 2023-03-27 16:50 +0200
Re: Buster => Bullseye: packages kept back davidson <davidson@freevolt.org> - 2023-03-28 11:00 +0200
Re: Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-28 12:30 +0200
Re: Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-27 16:50 +0200
Re: Buster => Bullseye: packages kept back Cindy Sue Causey <butterflybytes@gmail.com> - 2023-03-26 17:40 +0200
Re: Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-26 19:30 +0200
Re: Buster => Bullseye: packages kept back David Wright <deblis@lionunicorn.co.uk> - 2023-03-26 20:20 +0200
Re: Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-27 00:30 +0200
Re: Buster => Bullseye: packages kept back Jeffrey Walton <noloader@gmail.com> - 2023-03-26 23:20 +0200
Re: Buster => Bullseye: packages kept back Jesper Dybdal <jd-debian-user@dybdal.dk> - 2023-03-27 00:30 +0200
Re: Buster => Bullseye: packages kept back Vincent Lefevre <vincent@vinc17.net> - 2023-03-27 13:30 +0200
Re: Buster => Bullseye: packages kept back Greg Wooledge <greg@wooledge.org> - 2023-03-27 13:50 +0200
Re: Buster => Bullseye: packages kept back Vincent Lefevre <vincent@vinc17.net> - 2023-03-27 14:20 +0200
Re: Buster => Bullseye: packages kept back Greg Wooledge <greg@wooledge.org> - 2023-03-27 14:30 +0200
Re: Buster => Bullseye: packages kept back Dan Ritter <dsr@randomstring.org> - 2023-03-27 15:10 +0200
Re: Buster => Bullseye: packages kept back Nicolas George <george@nsup.org> - 2023-03-27 15:20 +0200
Re: Buster => Bullseye: packages kept back gene heskett <gheskett@shentel.net> - 2023-03-27 16:10 +0200
Re: Buster => Bullseye: packages kept back <tomas@tuxteam.de> - 2023-03-27 17:40 +0200
Re: Buster => Bullseye: packages kept back gene heskett <gheskett@shentel.net> - 2023-03-27 20:10 +0200
Re: Buster => Bullseye: packages kept back <tomas@tuxteam.de> - 2023-03-28 07:10 +0200
Re: Buster => Bullseye: packages kept back gene heskett <gheskett@shentel.net> - 2023-03-28 17:10 +0200
alternative views of PNG (was Re: Buster => Bullseye: packages kept back) davidson <davidson@freevolt.org> - 2023-03-28 13:00 +0200
Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback) gene heskett <gheskett@shentel.net> - 2023-03-28 17:40 +0200
Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback) gene heskett <gheskett@shentel.net> - 2023-03-28 18:50 +0200
Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback) <tomas@tuxteam.de> - 2023-03-28 20:00 +0200
Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback) <tomas@tuxteam.de> - 2023-03-28 20:00 +0200
Re: alternative views of PNG (was Re: Buster => Bullseye: packages keptback) davidson <davidson@freevolt.org> - 2023-03-29 09:30 +0200
Re: Buster => Bullseye: packages kept back Vincent Lefevre <vincent@vinc17.net> - 2023-04-03 13:50 +0200
Re: Buster => Bullseye: packages kept back Greg Wooledge <greg@wooledge.org> - 2023-03-27 16:10 +0200
Re: Buster => Bullseye: packages kept back davidson <davidson@freevolt.org> - 2023-03-28 08:30 +0200
apt colored output (was Re: Buster => Bullseye: packages kept back) davidson <davidson@freevolt.org> - 2023-04-03 08:00 +0200
Re: Buster => Bullseye: packages kept back Anssi Saari <as@sci.fi> - 2023-03-28 11:30 +0200
csiph-web