public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dan Farrell <dan@spore.ath.cx>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Why are gentoo people so in love with colorized output?!?
Date: Sat, 7 Apr 2007 12:26:31 -0500	[thread overview]
Message-ID: <20070407122631.08999842@pascal.spore.ath.cx> (raw)
In-Reply-To: <461548D6.4050103@bredband.net>

On Thu, 05 Apr 2007 21:07:02 +0200
Tony Stohne <tstohne@bredband.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Mick said the following on 2007-04-05 19:07:
> | ...
> | Hmm, neither less not cat give me color output.  Passing --color=y
> to either
> | tells me things like:
> | ==============================
> | There is no color=y option ("less --help" for help)
> | ==============================
> |
> | I also tried --color but it's all still shown in black & white.  How
> do you
> | pipe a file and get it to show in color?  Am I missing something in
> | my .bashrc or elsewhere?
> 
> To make less interpret color escape sequences, you need the -R option.
> export LESS=-R in your shell startup script and you-ll have it as
> default. Generally, you don't want to use less -r, which allows
> arbitrary control characters through to affect the terminal (which
> tend to create major garbage).
> 
> Color is added via ANSI escape sequences, which don't work in all
> displays/terminals/consoles, but as an example: grep is smart enough
> to detect this and won't use color (even when specified) if you're
> sending the output via a pipeline. Otherwise, if you piped the
> output, eg to less, the ANSI escape sequences would send garbage to
> the screen.
> 
> ~ If, on the other hand, that's really what you want to do (without
> the garbage), there's a workaround:
> 
> use the --color=always to force it through and call less with the -R
> flag (which prints ALL RAW control characters). That way, the color
> codes will escape correctly and you'll page through screens of text
> with your matched patterns in full color:
> 
> grep --color=always "regexp" the_file_you_want_to_wade_through | less
> -R
> 
> That should do the trick :)
> 
> //Regards Tony
> 
> PS. Have a nice Easter everyone!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> 
> iD8DBQFGFUjWJDzv6DN+QUkRArevAKDoe0VND3TXj0o0kV3KkrD7cwPmBgCfUF27
> VgMOQFi+i5rwL2p0rpljZ70=
> =w/na
> -----END PGP SIGNATURE-----
Hey tony,  maybe this is beyond your control, or maybe you don't care,
and if not i respect your autonomy in such matters, but your reply
block punctuation character '|' defeats the very helpful colorization
of my and many other browsers that use the usual '>' character to
identify reply text.  It makes your letters nearly unreadable.  
respects, - dan
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2007-04-07 17:36 UTC|newest]

Thread overview: 133+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04  4:17 [gentoo-user] Why are gentoo people so in love with colorized output?!? felix
2007-04-04  4:29 ` Bo Ørsted Andresen
2007-04-04  5:13   ` felix
2007-04-04  5:36     ` Bo Ørsted Andresen
2007-04-04  6:19       ` Graham Murray
2007-04-04  6:22         ` Bo Ørsted Andresen
2007-04-05 17:07           ` Mick
2007-04-05 19:07             ` Tony Stohne
2007-04-05 19:14               ` Tony Stohne
2007-04-05 19:22                 ` Tony Stohne
2007-04-06 15:44               ` Mick
2007-04-06 18:34                 ` Tony Stohne
2007-04-07 17:26               ` Dan Farrell [this message]
2007-04-07 19:32                 ` Tony Stohne
2007-04-07 23:07                 ` [gentoo-user] sylpheed claws quotes colourisation (was: Why are gentoo people so in love with colorized output?!?) Renat Golubchyk
2007-04-08  1:39                   ` Dan Farrell
2007-04-08  8:36                 ` [gentoo-user] Why are gentoo people so in love with colorized output?!? Neil Bothwick
2007-04-08 15:40                   ` Dan Farrell
2007-04-08 16:56                     ` Neil Bothwick
2007-04-08 23:25                       ` David Relson
2007-04-09 13:44                         ` Dan Farrell
2007-04-06  5:48             ` W.Kenworthy
2007-04-06  6:14               ` Graham Murray
2007-04-06  8:19                 ` Neil Bothwick
     [not found]                 ` <200704061149.37793.benno.schulenberg@gmail.com>
2007-04-06 10:26                   ` Paul Colquhoun
2007-04-08 13:24                 ` [gentoo-user] " Alexander Skwar
2007-04-06 11:06             ` [gentoo-user] " Bo Ørsted Andresen
2007-04-06 16:03               ` Mick
2007-04-04  7:32       ` felix
2007-04-04 10:15         ` Andrey Gerasimenko
2007-04-04 10:27           ` Alexis Lahouze
2007-04-04 11:51           ` Bo Ørsted Andresen
2007-04-04 13:09             ` Daniel Iliev
2007-04-04 13:21               ` [gentoo-user] " Alexander Skwar
2007-04-04 14:29               ` [gentoo-user] " Neil Bothwick
2007-04-04 15:53                 ` felix
2007-04-04 16:19                   ` [gentoo-user] Why are gentoo people so in love with colorizedoutput?!? Nelson, David J
2007-04-04 17:07                     ` felix
2007-04-04 18:10                       ` [gentoo-user] " Harm Geerts
2007-04-04 19:00                         ` felix
2007-04-04 19:04                           ` felix
2007-04-04 19:37                           ` Neil Walker
2007-04-04 19:41                         ` Neil Walker
2007-04-04 20:04                           ` Dan Cowsill
2007-04-04 20:28                             ` felix
2007-04-04 21:08                               ` Dan Cowsill
2007-04-05  6:47                       ` Alexander Skwar
2007-04-05  8:51                       ` [gentoo-user] Why are gentoo people so in love withcolorizedoutput?!? Nelson, David J
2007-04-04 17:27                   ` [gentoo-user] Why are gentoo people so in love with colorized output?!? Bo Ørsted Andresen
2007-04-04 18:24                   ` Neil Bothwick
2007-04-04 21:31                     ` b.n.
2007-04-04 19:48                       ` Neil Bothwick
2007-04-04 20:34                       ` Benno Schulenberg
2007-04-05  1:02                   ` Hemmann, Volker Armin
2007-04-05  6:28                     ` [gentoo-user] " Alexander Skwar
     [not found]                   ` <200704042140.21829.harmgeerts@home.nl>
     [not found]                     ` <20070404195909.GA18762@crowfix.com>
2007-04-04 20:35                       ` [gentoo-user] Re: Why are gentoo people so in love with colorizedoutput?!? Bo Ørsted Andresen
     [not found]                       ` <200704042227.48244.harmgeerts@home.nl>
2007-04-04 20:57                         ` felix
2007-04-04 21:23                           ` Chris Scullard
2007-04-04 21:38                           ` Neil Walker
2007-04-05  6:55                           ` [gentoo-user] " Alexander Skwar
2007-04-05  7:09                           ` [gentoo-user] " Mark Kirkwood
2007-04-05 10:02                           ` Boyd Stephen Smith Jr.
2007-04-05 21:26                           ` b.n.
2007-04-05  6:51                       ` [gentoo-user] " Alexander Skwar
2007-04-04 11:37         ` [gentoo-user] Why are gentoo people so in love with colorized output?!? Bo Ørsted Andresen
2007-04-04 14:33           ` felix
2007-04-04 15:50             ` Neil Walker
     [not found]               ` <20070404155552.GB10689@crowfix.com>
2007-04-05  7:11                 ` [gentoo-user] " Alexander Skwar
2007-04-16 19:13         ` [gentoo-user] " Bryan Whitehead
2007-04-04  4:33 ` Dale
2007-04-04  5:48   ` Roy Wright
2007-04-04  7:04     ` Neil Bothwick
2007-04-04  9:56 ` Boyd Stephen Smith Jr.
2007-04-04 14:26 ` [gentoo-user] " Grant Edwards
2007-04-04 16:00   ` felix
2007-04-04 16:44     ` Neil Walker
2007-04-04 17:56       ` Grant Edwards
2007-04-04 18:12         ` felix
2007-04-04 19:15         ` Neil Walker
     [not found]           ` <ev0tob$4nk$1@sea.gmane.org>
2007-04-04 19:29             ` felix
2007-04-05  6:58         ` Alexander Skwar
2007-04-05 14:24           ` Grant Edwards
2007-04-05 14:35             ` Neil Bothwick
2007-04-05 14:45               ` Grant Edwards
2007-04-05 15:31                 ` Ryan Curtin
2007-04-05 15:39                 ` Neil Bothwick
2007-04-05 17:48                   ` Grant Edwards
2007-04-05 18:28                     ` Neil Bothwick
2007-04-05 19:52                       ` Grant Edwards
2007-04-05 20:33                         ` Christer Ekholm
2007-04-05 21:24                         ` Neil Bothwick
2007-04-05 21:41                           ` Grant Edwards
2007-04-05 22:28                             ` Neil Bothwick
2007-04-05 22:29                       ` b.n.
2007-04-05 16:14                 ` Tony Stohne
2007-04-05 17:51                   ` Grant Edwards
2007-04-05 18:26                     ` Tony Stohne
2007-04-05 18:36                       ` Tony Stohne
2007-04-06 16:18                         ` Mick
2007-04-06 18:36                           ` Tony Stohne
2007-04-05 18:33                     ` Francesco Talamona
2007-04-05 18:47                       ` Tony Stohne
2007-04-05 14:58             ` Grant Edwards
2007-04-07 18:08             ` Dan Farrell
2007-04-07 18:30               ` Mike Markowski
2007-04-07 20:52               ` Grant Edwards
2007-04-08  8:39               ` Neil Bothwick
2007-04-08 18:49                 ` Mike Edenfield
2007-04-09 13:47                   ` [gentoo-user] [OT] " Dan Farrell
2007-04-04 17:55     ` [gentoo-user] " Grant Edwards
2007-04-04 18:15       ` Neil Bothwick
2007-04-04 21:36     ` b.n.
2007-04-06 16:28       ` Mick
2007-04-04 16:20 ` [gentoo-user] " Rob Rutherford
2007-04-04 16:30 ` Jan Seeger
2007-04-05  6:38 ` Bertram Scharpf
     [not found] ` <20070405144024.GA13528@crowfix.com>
2007-04-05 15:00   ` Boyd Stephen Smith Jr.
2007-04-05 16:42     ` [gentoo-user] " »Q«
2007-06-10 13:38 ` FeatureRequest Was: Re: [gentoo-user] " Robert Welz
2007-06-10 20:06   ` Karl Haines
2007-06-10 21:29     ` Boyd Stephen Smith Jr.
2007-06-10 22:07       ` Kevin O'Gorman
2007-06-10 22:23         ` Daniel Pielmeier
2007-06-10 22:32         ` [gentoo-user] Re: FeatureRequest Was: " Grant Edwards
2007-06-10 23:02           ` Boyd Stephen Smith Jr.
2007-06-10 23:22             ` Boyd Stephen Smith Jr.
2007-06-11  2:02               ` Dan Farrell
2007-06-10 23:24         ` FeatureRequest Was: Re: [gentoo-user] " Graham Murray
2007-06-11  3:40         ` Karl Haines
2007-06-11 10:02     ` Bertram Scharpf
2007-06-11 10:02       ` Bertram Scharpf
2007-06-11  7:53   ` [gentoo-user] Re: FeatureRequest Was: " Alexander Skwar
2007-06-19 11:40     ` Robert Welz

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=20070407122631.08999842@pascal.spore.ath.cx \
    --to=dan@spore.ath.cx \
    --cc=gentoo-user@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox