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? |
13 |
|
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. |