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     red    green  # `+' 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

Reply via email to