Bug 189161

Summary: xterm does not use reverse colors with -r or -rv
Product: [Fedora] Fedora Reporter: Florin Andrei <florin>
Component: xtermAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: dickey
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-18 11:17:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Florin Andrei 2006-04-17 18:43:02 UTC
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 22:31:00 UTC
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 23:19:03 UTC
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 23:19:29 UTC
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-15 00:22:08 UTC
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 22:26:54 UTC
Revisiting this - I don't see the failure that I noted before.
Will add that change (and look for reproducible issues ;-)