Bug 189161 - xterm does not use reverse colors with -r or -rv
xterm does not use reverse colors with -r or -rv
Product: Fedora
Classification: Fedora
Component: xterm (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Miroslav Lichvar
Depends On:
  Show dependency treegraph
Reported: 2006-04-17 14:43 EDT by Florin Andrei
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-08-18 07:17:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Florin Andrei 2006-04-17 14:43:02 EDT
Description of problem:
According to its man page, xterm is able to reverse the colors for background
and foreground, when using the -r or -rv options
However, none of these options work. xterm, with or without these options, uses
the same color scheme.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run xterm with no parameters
2. make a not of the color scheme used by xterm
3. run xterm with either -r or -rv options
4. compare color scheme
Actual results:
xterm uses the same color scheme regardless of -r or -rv being used or not

Expected results:
With -r or -rv, xterm should flip the colors used for background and foreground

Additional info:
Comment 1 Jason Vas Dias 2006-05-31 18:31:00 EDT
Well, xterm DOES flip the fg & bg colors when no xterm*{fore,back}ground 
Xresources are set; the Xresource settings override the flipped default
fg & bg. This does seem rather counterintuitive, so I applied a patch
which will flip the fg & bg AFTER the xterm*{fore,back}ground resources
take effect - fixed with xterm-213-1.FC4, being released to updates/testing
Comment 2 Fedora Update System 2006-05-31 19:19:03 EDT
xterm-213-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.
Comment 3 Fedora Update System 2006-05-31 19:19:29 EDT
xterm-213-1.FC4 has been pushed for fc4, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.
Comment 4 Thomas E. Dickey 2006-06-14 20:22:08 EDT
Actually it's not xterm that does the flipping, but Xt.
And (looking at your patch) Xt doesn't flip the colors
if they're done explicitly via the -fg or -bg options.
Reading the bug report though, I'd thought we were only
talking about "xterm -rv".  The patch works for the case
where we have "xterm -rv -fg red -bg blue", but not when
colors are applied to the vt100 widget as in XTerm-col.ad's
commented-out (and uncommented on my machine):

! Uncomment this for "white" text on a dark background. 
!*VT100*foreground: gray90 
!*VT100*background: black
Comment 5 Thomas E. Dickey 2006-06-25 18:26:54 EDT
Revisiting this - I don't see the failure that I noted before.
Will add that change (and look for reproducible issues ;-)

Note You need to log in before you can comment on or make changes to this bug.