Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get plain ascii from "man"?
Date: Wed, 25 Mar 2009 22:26:42
In Reply to: [gentoo-user] How to get plain ascii from "man"? by Grant Edwards
1 On Wed, Mar 25, 2009 at 5:12 PM, Grant Edwards <grante@××××.com> wrote:
2 > How do you get a plain ascii file (no backspacing, no escape
3 > sequences) out of "man"? Running it through col or colcrt
4 > doesn't work anymore, because the default output contains ANSI
5 > color escape sequences.
6 >
7 > grotty apparently outputs ANSI color escape sequences
8 > regardless of whether or not the output is a tty and regardless
9 > of the TERM setting.
10 >
11 > Who decided that everyting in the friggin' world was an ANSI
12 > color crt even if it's not a tty and TERM isn't set?
14 Edit /etc/man.conf and add -c to the commandline for TROFF, NROFF and
15 JNROFF. Then "man program | col -bf" or your method of choice should
16 work. There is a note in the man.conf comments about it.


Subject Author
[gentoo-user] Re: How to get plain ascii from "man"? Grant Edwards <grante@××××.com>