From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LmbYY-0004HM-Fb for garchives@archives.gentoo.org; Wed, 25 Mar 2009 22:26:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51737E0662; Wed, 25 Mar 2009 22:26:41 +0000 (UTC) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by pigeon.gentoo.org (Postfix) with ESMTP id 356DDE0662 for ; Wed, 25 Mar 2009 22:26:41 +0000 (UTC) Received: by an-out-0708.google.com with SMTP id d14so223604and.1 for ; Wed, 25 Mar 2009 15:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Xuo6TUfv7mvGZ4iH19v2POejtmXTs0939ZR+w9ZwuNM=; b=kwTRMHvEBQFrPl+tElvm5t9t+R2a57kjxde7KksT6jhAjQokvfMlY9HIx/wFKPgc3O gS5a/ybFHdzSp8zinvOsH92Tqj1pAWvb17yAmt9yHQZu67GKDzTnCwpFnbyGaEA8Cwrk iJih/JTL+7nKSzF+L7QSkQtA+wW6QL5jJ+PAg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=owiNRGkN7HIiS1+KDjUTvjVNOTmoHY441wBS9BoNHHhJl9VtQ8ieFBcZVHPuBFuZ3A UT8nHiyOSrk38M3tvSsDe6oH0+8O1L7AkQNWWaIXV1Dq+2OTQ/SdCrXt2hGx7xso3Ocj MqtvmI+/dI6I06+FxjuMsTI1FTeHx2eEzFF0I= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.100.110.15 with SMTP id i15mr57216anc.88.1238020000543; Wed, 25 Mar 2009 15:26:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Mar 2009 17:26:40 -0500 X-Google-Sender-Auth: 8ba02877fc50de98 Message-ID: <58965d8a0903251526v5690f853sb51c0d0a0f1c3c47@mail.gmail.com> Subject: Re: [gentoo-user] How to get plain ascii from "man"? From: Paul Hartman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 30962507-524c-486b-aabf-54ccf5fd0583 X-Archives-Hash: 2c9da8f982e003f8786946f2078943d4 On Wed, Mar 25, 2009 at 5:12 PM, Grant Edwards 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.