Michael Paoli-2 wrote:
> 
> from groff-base 1.18.1.1-7 we have:
> $ echo '.BR foo bar' |
>> 2>>/dev/null groff -te -msafer -mtty-char -mm -Tascii |
>> fgrep f | cat -v
>        ^[[1mfoo^[[22mbar
> $ 
> Apparently with groff-base 1.18.1.1-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
> mess).
> 

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
|cat -v
       f^Hfo^Hoo^Hobar



-- 
View this message in context: 
http://www.nabble.com/Bug-390397%3A-groff--Tascii-broken%3A-should-not-output-ANSI-escape-sequences-tf2364124.html#a12603473
Sent from the Groff - Bugs mailing list archive at Nabble.com.



_______________________________________________
bug-groff mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to