Subject: bug#2501: 22.2.1: terminal mrxvt white - fonts are unreadable

From: Dan Nicolaescu <[email-masked]>
Date: Fri, 27 Feb 2009 12:14:18 -0800 (PST)

Jari Aalto <[email-masked]> writes:

  > Dan Nicolaescu <[email-masked]> writes:
  > >   > On a white mrxt black on white terminal[1], the font-lock colors are
  > >   > unreadable. See attached picture.
  > >   > 
  > >   >     $ tput colors
  > >   >     8
  > >   > 
  > >   > [1] Debian; mrxvt 0.5.3-2 terminal
  > >   > http://packages.debian.org/mrxvt
  > >
  > > It appears that emacs thinks that you have dark background.   What did
  > > you set TERM to?
  > 
  > I started mrxvt from xterm:
  > 
  >     $ xterm
  >     $ echo $TERM
  >     xterm
  >     $ mrxvt &
  > 
  >     mrxvt$ echo $TERM
  >     rxvt
  >     <terminal is open in black on white>

It works just fine for me on Fedora 10, with emacs CVS HEAD, emacs-22.3
on either rxvt and mrxvt.

  > > This looks like it is an rxvt derivative, so the value of the COLORFGBG
  > > environment variable should help emacs realize what is the default
  > > background.
  > 
  > mrxvt$ COLORFGBG=1 emacs -Q -nw
  > => Same color results as in previously attached picture

Try setting COLORFGBG to: 0;default