Bug 189161 - xterm does not use reverse colors with -r or -rv
Summary: xterm does not use reverse colors with -r or -rv
Alias: None
Product: Fedora
Classification: Fedora
Component: xterm   
(Show other bugs)
Version: 4
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-04-17 18:43 UTC by Florin Andrei
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

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

Attachments (Terms of Use)

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 ;-)

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