[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Escape characters in -man output
From: |
Meg McRoberts |
Subject: |
Re: [Groff] Escape characters in -man output |
Date: |
Thu, 7 Jul 2005 01:34:04 -0700 (PDT) |
Thanks, Jorgen, I had missed this -- I'm not technical enough
to recognize that these *m strings were SGR. However, I just
tried adding -c and -C to my groff line and I still have the
same thing. Here's my command line:
groff -mandoc -stC -Tlatin1 tmsplx.xml.5 | col -b > catman/tmsplx.xml.5
Apologies if I am just being dense -- I grew up roff'ing in places
where we had professional tools people who dealt with this stuff.
Sigh. Those were the days...
I did try -st -C just in case -- the man page looks like the C option
should be combined with -st but I thought it was worth trying.
meg
--- Jörgen Grahn <address@hidden> wrote:
> On Wed Jul 6 15:33:19 2005, address@hidden wrote:
> > I'm getting escape characters in my -man output -- the 0m
> > stuff. I googled and it isn't just me:
> >
> > http://lists.gnu.org/archive/html/bug-groff/2003-03/msg00000.html
> >
> > http://lists.gnu.org/archive/html/bug-groff/2002-08/msg00092.html
> >
> > http://www.wplug.org/pipermail/wplug/2003-March/015970.html
> >
> > I'm running version 1.19 that came bundled with Mandrake 10.1.
> > I can send details but it looks like this is an old problem --
> > is there a fix and/or work-around (other than a sed script that
> > strips this stuff out of the file)?
>
> Isn't this the stuff documented in groff's NEWS file?
> Quoting under 1.18, Grotty:
>
> SGR escape sequences are now used by default for underlining and bold
> printing also, no longer using the backspace character trick. To revert
> to the old behaviour, use the `-c' switch.
>
> The same text also suggests how to make it work with less(1) and man(1),
> and that the environment variable GROFF_NO_SGR reverts to the old way of
> bolding and underlining (with ^H).
>
> I assume some Linux distributions never did the necessary changes to man,
> less and their setups to make this work. For what it's worth, Debian
> Gnu/Linux (which I use) chose to disable the feature in groff instead:
>
> Disable the new ANSI colour/bold/underline escapes in nroff mode, because
> most pagers either fail to cope with it or need special options to do so.
>
> /Jörgen
>
> --
> // Jörgen Grahn "Koka lopplummer, bada Ross, loppor borta."
> \X/ <address@hidden> -- Jonas
>
>
> _______________________________________________
> Groff mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/groff
>