Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2017 18:29:16 -0500
From:      Thomas Dickey <dickey@his.com>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: help with man page content
Message-ID:  <20170213232915.GA10227@vmw-debian7-64.jexium-island.net>
In-Reply-To: <58A214C5.8040409@gmail.com>
References:  <58A214C5.8040409@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--2fHTh5uZTiUOsy+g
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 13, 2017 at 03:19:17PM -0500, Ernie Luzar wrote:
> Hi List;
>=20
> I am creating a man page and I want to include the output from the
> ifconfig command. Is there some command I can wrap around all the
> lines to nullify the auto wrapping feature? Something like what is
> done to highlight text.

In xterm's manual page, I do it using these macros:

=2Ede NS
=2Eie \n(.sp
=2Eel    .sp .5
=2Eie \n(.in +4
=2Eel    .in +2
=2Enf
=2Eft C			\" Courier
=2E.
=2Ede NE
=2Efi
=2Eft R
=2Ein -4
=2E.

The main parts are ".nf" (no fill) and ".fi" (fill), to turn off formatting
and resume, respectively.

--=20
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

--2fHTh5uZTiUOsy+g
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAliiQUsACgkQcCNT4PfkjtvYRQCfQhNgbNohCvKew0oVBn42KnM4
A3cAn1HOs9z4ef5+H4MJzS1WkQ9t2hH9
=lRCP
-----END PGP SIGNATURE-----

--2fHTh5uZTiUOsy+g--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170213232915.GA10227>