groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] SGR implementation in groff


From: Werner LEMBERG
Subject: Re: [Groff] SGR implementation in groff
Date: Sun, 14 Oct 2001 17:27:08 +0200 (CEST)

> >   . SGR will be the default; grotty's current output for bold and
> >     underlining will be available if the `-c' switch is selected to
> >     suppress color output.
> 
> That's a new grotty option, the -c?  As someone who dislikes colour ls
> what will I need to do to keep man working without colour?  I suppose
> that's asking how man can be told to get -c passed to grotty.
> /etc/man.options may help I suppose.

Using SGR doesn't automatically mean color support!  For example, to
have a bold letter A, grotty currently writes

  A^HA

(^H is <BACKSPACE>)

In SGR mode, this will be done as

  ^[[1mA^[[22m

(^[ is <ESC>)

The former works only with `less', the latter with e.g. `xterm' also.

Use `-P-c' as an additional groff option to not use SGR output.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]