From owner-freebsd-current@FreeBSD.ORG Wed Oct 5 20:57:52 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B85E71065670 for ; Wed, 5 Oct 2011 20:57:52 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4808FC08 for ; Wed, 5 Oct 2011 20:57:52 +0000 (UTC) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id p95KZkj5003432; Wed, 5 Oct 2011 16:35:46 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id p95KZkrk003431; Wed, 5 Oct 2011 16:35:46 -0400 (EDT) Date: Wed, 5 Oct 2011 16:35:46 -0400 From: Thomas Dickey To: Christian Weisgerber Message-ID: <20111005203545.GA2707@saltmine.radix.net> References: <20111004205648.GA19519@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Cc: freebsd-current@freebsd.org Subject: Re: groff -ms -Tascii (nroff?) strange output X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2011 20:57:52 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 05, 2011 at 04:17:16PM +0000, Christian Weisgerber wrote: > Anton Shterenlikht wrote: >=20 > > BUZI> groff -ms -Tascii try.1 | more > >=20 > > ESC[1mSome titleESC[0m > >=20 > > How can I get a plain text rendering > > from a troff document with ms macros? >=20 > With nroff, use the -c flag: >=20 > nroff -ms -c -Tascii >=20 > The groff frontend has a more convoluted syntax for it: >=20 > groff -ms -P -c -Tascii setting the environment variable GROFF_NO_SGR is simpler and doesn't appear to cause problems - "man grotty" is the place to look. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFOjL+gtIqByHxlDocRAh0qAJ4oqdYsSEllHpHsLuq/Lv89vAbyCwCgpRBx 9QkRsEp9629+imAIObBIODM= =y0Yb -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--