Re: Color display question

2021-07-22 Thread isdtor


> I think that might be elinks. I'm not sure about what all the relevant
> options are, but document.colors.text (default foreground) may be what
> is giving you light gray text. You probably also want
> document.colors.use_document_colors to be 2 and document.css.enable to
> be enabled (1)?

Thanks. I gave that a try, but no change. document.colors.background and 
document.colors.text don't seem to have any effect. 
document.colors.use_document_colors is set to 2 by default, and 
document.css.enable is set to 1 by default. The only visible change is when I 
change document.dump.color_mode to 0, which disables color and basically sets 
monochrome mode. document.colors.use_document_colors 0 and 1 have the same 
light gray text but no highlighting.



Re: Color display question

2021-07-22 Thread nunojsilva
On 2021-07-21, isdtor wrote:

> I realize my config has a lot of moving parts and non-default
> settings, but I still hope someone can shine a light on this.
>
> I use less instead of the internal pager (note -R option),
>
> set pager="less -eiMR"
>
> and elinks for html display
>
> text/html; /usr/bin/elinks -localhost 1 -no-connect 1 -force-html
> -dump '%s' ; copiousoutput
>
> The terminal is gnome-terminal which defaults to TERM=xterm, supports
> 80 colors according to tput, and muttrc sources a terminal-specific
> file with color settings the original source of which I don't
> remember.
>
> color header  red black  .* # (match regexp in the message header)
> color header  yellow black  ^To: # (match regexp in the message header)
> color header  green black  ^Subject: # (match regexp in the message 
> header)
> color index   white black .* # index
> color indicator   white  blue   # index
> color markers redgreen  # `+' markers at beginning of wrapped lines
> color message white black
> color normal  white  black  # pager body
>
> Sometimes I receive email with text emphasized by color, say, yellow
> background. The described setup, while coloring the index view, shows
> all text in monochrome, so I'm missing some information and need to
> open the message in firefox.
>
> elinks can handle color, so I added this setting to ~/elinks/elinks.conf
>
> set document.dump.color_mode = 4
>
> The result is that when a html message is viewed, the headers continue
> to be shown normally - white background, black text - but the message
> text is now less readable with white background and light grey
> text. Any highlighted text is displayed in black with grey background
> (not matching background-color style from the html source, but I can
> lvie with that).
>
> The main problem is that the text is light grey, which is barely
> readable on white background. Any idea where I can tweak this? My
> first guess was this is controlled by less, but I played with various
> settings for LESS_TERMCAP_md, with no tangible results.

I think that might be elinks. I'm not sure about what all the relevant
options are, but document.colors.text (default foreground) may be what
is giving you light gray text. You probably also want
document.colors.use_document_colors to be 2 and document.css.enable to
be enabled (1)?

-- 
Nuno Silva