From: Paul Hartman <paul.hartman+gentoo@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to get plain ascii from "man"?
Date: Wed, 25 Mar 2009 17:26:40 -0500 [thread overview]
Message-ID: <58965d8a0903251526v5690f853sb51c0d0a0f1c3c47@mail.gmail.com> (raw)
In-Reply-To: <gqea84$ov5$1@ger.gmane.org>
On Wed, Mar 25, 2009 at 5:12 PM, Grant Edwards <grante@visi.com> wrote:
> How do you get a plain ascii file (no backspacing, no escape
> sequences) out of "man"? Running it through col or colcrt
> doesn't work anymore, because the default output contains ANSI
> color escape sequences.
>
> grotty apparently outputs ANSI color escape sequences
> regardless of whether or not the output is a tty and regardless
> of the TERM setting.
>
> Who decided that everyting in the friggin' world was an ANSI
> color crt even if it's not a tty and TERM isn't set?
Edit /etc/man.conf and add -c to the commandline for TROFF, NROFF and
JNROFF. Then "man program | col -bf" or your method of choice should
work. There is a note in the man.conf comments about it.
next prev parent reply other threads:[~2009-03-25 22:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 22:12 [gentoo-user] How to get plain ascii from "man"? Grant Edwards
2009-03-25 22:21 ` [gentoo-user] " Grant Edwards
2009-03-25 22:26 ` Paul Hartman [this message]
2009-03-25 22:44 ` Grant Edwards
2009-03-25 23:01 ` Paul Hartman
2009-03-26 1:26 ` Grant Edwards
2009-03-29 16:49 ` [gentoo-user] " Walter Dnes
2009-03-29 17:14 ` [gentoo-user] " ABCD
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=58965d8a0903251526v5690f853sb51c0d0a0f1c3c47@mail.gmail.com \
--to=paul.hartman+gentoo@gmail.com \
--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