LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   XTerm*reverseVideo: true doesn't work in KDE (https://www.linuxquestions.org/questions/slackware-14/xterm%2Areversevideo-true-doesn%27t-work-in-kde-881460/)

dugan 05-18-2011 12:50 PM

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.

ponce 05-18-2011 01:57 PM

maybe it's because you got "apply colors to non kde applications" in the kde preferences color tab (it's on by default).

sahko 05-18-2011 02:15 PM

Quote:

Originally Posted by dugan (Post 4360123)
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.

MTK358 05-18-2011 03:13 PM

Quote:

Originally Posted by ponce (Post 4360183)
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.

dugan 05-18-2011 03:13 PM

Quote:

Originally Posted by ponce (Post 4360183)
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.

MTK358 05-18-2011 03:15 PM

Quote:

Originally Posted by dugan (Post 4360262)
Thank you! That was exactly it.

I wonder how that's supposed to work.

Anyway, mark the thread as solved.

ponce 05-18-2011 03:38 PM

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


All times are GMT -5. The time now is 12:06 PM.