groff -ms -Tascii (nroff?) strange output

Thomas Dickey dickey at radix.net
Wed Oct 5 20:57:52 UTC 2011


On Wed, Oct 05, 2011 at 04:17:16PM +0000, Christian Weisgerber wrote:
> Anton Shterenlikht <mexas at bristol.ac.uk> wrote:
> 
> > BUZI> groff -ms -Tascii try.1 | more
> > 
> >                          ESC[1mSome titleESC[0m
> > 
> > How can I get a plain text rendering
> > from a troff document with ms macros?
> 
> With nroff, use the -c flag:
> 
>   nroff -ms -c -Tascii
> 
> The groff frontend has a more convoluted syntax for it:
> 
>   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.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20111005/cad88e9b/attachment.pgp


More information about the freebsd-current mailing list