Subject: Re: colours in Pine 4.44 HTML

From: Steve Hubert <[email-masked]>
Date: Fri, 1 Feb 2002 09:09:08 -0800 (Pacific Standard Time)

Pine should not do colors if you have color turned off. However, it will
do Bold and Inverse (standout). It may be the case that your terminal
emulator (xterm) shows Bold or Inverse as colored text. There may be some
configuration in the emulator to change that.

Pine does allow you to set a "Reverse" color, and one of the possibilities
is the Inverse mode of your terminal, but setting a Reverse color will
have no effect if Color Style is set to no-color.

Most likely it is the terminal emulator. For example, in the emulator I am
using inverse shows up as blue text on a white background and that is
settable in the emulator's configuration.

-- 
Steve Hubert <[email-masked]>
Networks and Distributed Computing, Univ. of Washington, Seattle

---

From: Andrew Daviel <[email-masked]>
Date: Tue, 5 Feb 2002 10:26:03 -0800 (PST)

> configuration in the emulator to change that.

Thank you for the hints. It seems likely it was a coincidence
with a change in my Pine version.

What I have found after a bit of experimentation is that
if colour is enabled in Pine, that hyperlinks in HTML
are in 'Selectable-item Color' while links with the cursor
on them are in 'Reverse Color'. Bold, italic and font colour are
in the regular text 'Normal Color' i.e. undifferentiated.

If colour is disabled in Pine, running in xterm, that bold and
italic both display as "underscored". Hyperlinks display as
"bold" and bold or italic hyperlinks display as "bold underscored".
Links with the cursor on display in reverse video.
Aha, found it in filter.c - html_i and html_b both map to HTML_ULINE
and html_a uses HTML_DOBOLD.

In xterm, if the X resource XTerm*VT100*colorMode is on and if
XTerm*VT100*colorBDMode is true then bold displays in colour
XTerm*VT100*colorBD, while if XTerm*VT100*colorULMode is true then
underscored displays in XTerm*VT100*colorUL. Otherwise bold appears
in font XTerm*VT100*boldFont. If XTerm*VT100*underLine is true,
underscore appears underlined.

I think my original problem was some spam sent with everything bolded, so
that bolded hyperlinks were invisible, but now I've lost it. I had 2
different xterms up with different colours even though as far as I could
tell the environment was identical as were the X resources (dumped with
xrdb -edit). Must have missed something. Anyhow I've set some of
these colours in my .Xdefaults for future use.

This for the archives in case anyone else gets the same problem :-)

-- 
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376
[email-masked]