SLUG Mailing List Archives
Re: [SLUG] man pages without the colour
- Subject: Re: [SLUG] man pages without the colour
- From: Daniel Bush <bush.daniel@xxxxxxxxx>
- Date: Fri, 2 Dec 2005 22:13:03 +1100
- Cc: slug@xxxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:subject:cc:in-reply-to:mime-version:content-type:references; b=dvHK24U3b+TpYewQuZPFfkvowDoujSmFRPJLw91ao5YU/Y1TngpDBilQ5Tprk+WsujUps5BZq3UnNpdXTydn2Sy5vjlcpZ+bE4JnEiBKLiugHCjNiwYGFaXq+iPxaa/eS0sUY6+dtT2Eppu7MgoFo1+l1Ypn6R1qxQqrvxPI5r0=
On 12/2/05, Ken Foskey <foskey@xxxxxxxxxxxxxxxx> wrote:
On Fri, 2005-12-02 at 20:14 +1100, Daniel Bush wrote:
> (I'm aware of nroff and groff and /etc/manpath.config; even tried to
> mangle their output using sed)
try man xyz | less
man is context aware and if it not a console (ie pipe) it possibly will
I forgot about directly piping it like that.
But I still got the colour in less. I was stumped for a while before trying my famous sed mangling-script again:
man xyz | sed -e 's/.^H//g' | less
and lo! crisp white manpages did materialise before me!
Ugly hack though.
(The ^H may or may not have something to do with the -c flag for nroff)