[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Bug#390397: groff -Tascii broken: should not output ANSI esc
Re: [Groff] Bug#390397: groff -Tascii broken: should not output ANSI escape sequences
Mon, 10 Sep 2007 14:32:15 -0700 (PDT)
Michael Paoli-2 wrote:
> from groff-base 220.127.116.11-7 we have:
> $ echo '.BR foo bar' |
>> 2>>/dev/null groff -te -msafer -mtty-char -mm -Tascii |
>> fgrep f | cat -v
> Apparently with groff-base 18.104.22.168-7, -Tascii is outputting ANSI
> escape sequences, and this of course breaks all kinds of stuff (e.g.
> this no longer works on dumb line printers and other devices that
> perfectly well understand ^H, ^I, ^L and printable ASCII characters,
> but know nothing of ANSI escape sequences; this similarly breaks
> stuff passed to less or col -b, etc., generally resulting in quite a
I ran into the same problem trying to generate plain text output.
You can either set the env varibale GROFF_NO_SGR, or you can pass -c to
grotty. (by passing -P-c to groff).
echo ".BR foo bar" | groff -te -msafer -mtty-char -mm -Tascii -P-c | fgrep f
View this message in context:
Sent from the Groff - Bugs mailing list archive at Nabble.com.
|[Prev in Thread]
||[Next in Thread]|
- Re: [Groff] Bug#390397: groff -Tascii broken: should not output ANSI escape sequences,