[Top][All Lists]

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

Re: [Groff] color support in grotty

From: Rick Richardson
Subject: Re: [Groff] color support in grotty
Date: Thu, 7 Feb 2002 07:26:13 -0600
User-agent: Mutt/

On Thu, Feb 07, 2002 at 09:33:25AM +0100, Werner LEMBERG wrote:
> Finally, here it is!
> I've finished color support in grotty and committed it to the CVS.
> SGR escape sequences will be the new default.  At the same time, I've
> added two new options to nroff.
>     Enjoy!

Hey, my nasty linuxtrade manual page with all of my curses screendumps
*magically* comes out in full color now!  WOW!  Good job.

There is only one bit of ickiness. It isn't your fault and I will have
to fix it myself.

The program itself and the screendumps call out for curses color
COLOR_YELLOW.  But yellow on any of my xterms isn't yellow at all,
rather, its most decidedly a medium orange.  To make the manual page
look exactly like what you see on the screen using the "grops"
postprocessor, I defined strings that set the foreground/background
colors, and for the case of "yellow", the screendump output maps that
to orange:

        .ds yel \m[orange]
        .ds Yel \M[orange]

This works great for "grops", but doesn't work for "grotty" which ignores
color "orange".

I think the philosophically correct fix is for me to conditionally
define the yel/Yel strings to be \m[yellow] and \M[yellow] if the
postprocessor is "grotty" (even though they will still come out orange
on an xterm) and \m[orange] and \M[orange] for all other postprocessors.


Rick Richardson  address@hidden
Stock information at your fingertips:

US Dept. of Transportation data indicates that the costs per new rider
of all but one of the more than 25 proposed new US light rail and
metro systems exceeds the cost of leasing a car in perpetuity. In some
cases a Jaguar XJ8 could be leased for less.

reply via email to

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