LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-18-2011, 12:50 PM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321
XTerm*reverseVideo: true doesn't work in KDE


Slackware64 13.37 user here.

I have the following line in my .Xresources, and it only works when I'm not running KDE:

Code:
XTerm*reverseVideo: true
When I start up XTerm in Xfce, TWM, or any other window manager, I get the expected black background. When I launch XTerm in KDE, I get a white background, meaning that the reverseVideo setting is not taking effect.

When I'm in KDE, launching XTerm with -rv does give me an XTerm with a black background. Obviously, having to add this switch every time I launch an XTerm in KDE is suboptimal, no matter how you try to automate it.

Manually running xrdb -merge ~/.Xresources and then launching XTerm immediately afterwards does not make a difference.

If you're wondering why this is a concern, it's because all 256-color vim color schemes (xoria256, desert256, inkpot) require reverseVideo to be set so that XTerm launches with a black background. You get a black-on-black cursor otherwise.
 
Old 05-18-2011, 01:57 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
maybe it's because you got "apply colors to non kde applications" in the kde preferences color tab (it's on by default).
 
Old 05-18-2011, 02:15 PM   #3
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
Slackware64 13.37 user here.

I have the following line in my .Xresources, and it only works when I'm not running KDE:

Code:
XTerm*reverseVideo: true
If you're wondering why this is a concern, it's because all 256-color vim color schemes (xoria256, desert256, inkpot) require reverseVideo to be set so that XTerm launches with a black background. You get a black-on-black cursor otherwise.
Ha! Thanks for this. I'm gonna try it. I hope setting this will mean that color0 will be replaced by the background setting.

edit: apparently it doesnt.
Hope you find what you are looking for though.

Last edited by sahko; 05-18-2011 at 02:27 PM.
 
Old 05-18-2011, 03:13 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by ponce View Post
maybe it's because you got "apply colors to non kde applications" in the kde preferences color tab (it's on by default).
That won't work because what it actually means is "apply colors to GTK+ applications". Pure X apps (such as XTerm) have no central theming capability whatsoever.
 
Old 05-18-2011, 03:13 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Original Poster
Rep: Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321
Quote:
Originally Posted by ponce View Post
maybe it's because you got "apply colors to non kde applications" in the kde preferences color tab (it's on by default).
Thank you! That was exactly it.

I would have thought the same thing as MTK358, but apparently he's mistaken.

Sahko, it sounds like you want a terminal with pseudo-transparency settings, such as aterm, eterm or rxvt-unicode.

Last edited by dugan; 05-18-2011 at 03:15 PM.
 
Old 05-18-2011, 03:15 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by dugan View Post
Thank you! That was exactly it.
I wonder how that's supposed to work.

Anyway, mark the thread as solved.
 
Old 05-18-2011, 03:38 PM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178Reputation: 4178
I think it's like this (colors are exported to X resources too) since the start of kde 4, gotta say happened to me a lot times (xterm was the app I used more since some months ago, now I switched to lxterminal).

Last edited by ponce; 05-18-2011 at 03:39 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl-enter doesn't work when running Midnight Commander in xterm narnie Linux - Software 6 02-19-2010 10:21 PM
Pressing 'j' doesn't work reading man pages with xterm, cola Debian 5 12-22-2009 02:57 AM
"sudo su - someuser -c xterm" doesn't work kenneho Linux - Newbie 1 10-02-2009 08:08 AM
xterm keyboard doesn't work if a mouse is over the window on the latest Fedora 10. Vaxon Linux - Desktop 2 06-05-2009 03:06 PM
xterm doesn't seem to work, using cygwin/x Asmor General 9 09-16-2006 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration