[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] color support in grotty
From: |
Bernd Warken |
Subject: |
Re: [Groff] color support in grotty |
Date: |
Thu, 7 Feb 2002 22:41:12 +0100 |
User-agent: |
Mutt/1.2.5i |
On Thu, Feb 07, 2002 at 07:26:13AM -0600, Rick Richardson wrote:
>
> 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.
>
On ttys, yellow has always been quite dark. The normal yellow is
implemented as "bright yellow".
Usually, there are problems with redefining yellow, but as groff input is
intended to be device-independent a correct color translation seems to be
wanted.
Bernd Warken