Red Hat Bugzilla – Bug 202592
options "-fg <color> -bg <color>" don't work
Last modified: 2007-11-30 17:11:40 EST
Description of problem:
When attempting to invoke xterm setting fg and bg colors via the usual options,
xterm -fg black -bg white
the colors come up reversed. The foreground in the example shown will be white
and the background black. Setting the +rv option usually fixes the problem (and
I am assuming a human error when the +rv option fails).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. xterm -fg COLOR1 -bg COLOR2
2. xterm -fg COLOR1 -bg COLOR2 +rv
1. RESULT: xterm will appear with FOREGROUND of COLOR2 and BACKGROUND of COLOR1
- not what was requested.
2. RESULT: xterm will appear with FOREGROUND of COLOR1 and BACKGROUND of COLOR2
- this is the opposite of what was requested.
This occurs for a "new" user with NO .Xdefaults file present on a fresh install
of FC5, so I must assume that there is something in the installed Xdefault for
xterm which causes this (but I have been unable to find it).
This behavior changed back when I was running FC4 when the rpm
xterm-213-1.FC4.i386.rpm was released. From looking at the code, I suspect that
the fix for bug #189161 broke these options altogether.
(I tried to search this one, but have been unable to find a dup of this problem.
Apologies if it is a dup...)
I can't reproduce it. Looks like something is setting reverseVideo. What does
xrdb -query show? And rpm -V xterm, just to make sure default resources aren't
I had an unrelated report in this area last week, have a fix for
it in current changes toward #217.
(Sorry for the delay - unexpected trip)
rpm -V xterm shows: (nothing)
xrdb -query | egrep -i 'xterm|reverse' shows the following:
xterm patch #217 has a fix which might apply to this case:
Patch #217 - 2006/8/20
* limit changes for reverse-video from patch #216 to cases where the
reverse-video command-line option is used (report by Zdenek
I still can't reproduce it. Can you try "xrdb -remove" before you start xterm?
The patch #217 might help in this case, the reverseVideo resource will be
ignored, but I'm not planning to include the patch at the moment. IMHO the
resource should be equivalent to the -rv option.
For the case I addressed, there were no xrdb settings for xterm.
It was all from the user's own X resources.
xterm-223-1.fc5 has been pushed for fc5, which should resolve this issue. If
these problems are still present in this version, then please make note of it in
this bug report.