I can't change xterm's colors (with Xresources)
I am trying to set custom colors in Xterm via the file ~/.Xresources but Xterm doesn't respond. Here is what Xresources contains:
Code:
XTerm*color0: rgb:0/0/0 Code:
!xterm*background: black I don't mind if it's going to be another way than editing Xresources. If Xterm cannot change colors, I am open to suggestions on another terminal that will allow me to do so (along with changing the font to something smooth like DejaVu Sans Mono). |
It should work fine, that's how my xterm settings are loaded too. And the lines starting with ! ought to be comments, so those definitely shouldn't be responded to. Did you remember to run xrdb to refresh the changes? Otherwise changes will be visible only when restarting X.
Code:
xrdb -merge ~/.Xdefaults |
These two options do work:
Code:
xterm*background: black I tried out setting colors in Hex instead of RGB but again it didn't worked (note that these are random colors, I just created them with Gcolor2 to test whether Xterm will respond): Code:
xterm*background: black If it's working on your system then maybe I messed some other configuration file? I don't know... |
Mine's Slackware too, but not x86. I appended your configs to my file, it works fine in my machine. See a snapshot.
Couple of things: you might want to symlink .Xdefaults and .Xresources just to be sure. Also, I've defined those lines as XTerm*color0 instead of xterm*color0, but your way works for me too. I've uploaded my .Xdefaults here, in case it helps. |
Maybe there are overriden by something in app-defaults ?
locate app-defaults Should be in /etc/X11/app-defaults/Xterm |
maybe you have an empty space at the end of each line? I remember that Xresources is sensitive to that. "#76A67F" is fine, but "#76A67F " is not.
|
Quote:
Thanks for the screenshot, I never doubted that it worked for you though! :-D Is this fvwm2? Nice theme! I symlinked .Xdefaults to .Xresources. Nothing changed. Then I removed .Xresources and kept just .Xdefaults. Again, nothing. I tried your Xdefaults (exactly as you have it on pastebin) but again, no change. Quote:
Quote:
It would be nice if someone with x86 Slackware could confirm that the colors of Xterm can be changed (you can test any of the configurations that me or the rest posted in this topic). |
By x86 do you mean x86-64? That's the conclusion I jumped to and I now see x86 also refers to normal i[3-6]86 families. My slackware runs on a 32 bit Pentium dual core.
Code:
arun ~ $ uname -a I've kinda run out of ideas here. You could make a deliberate typo in your .Xdefaults, and see whether or not xrdb actually parses the file when you run the merge command. I usually get warnings like 'unterminated single quote'. |
Quote:
Code:
bash-3.1$ xterm -bg "black " -fg "white" -fn "10x20" Code:
bash-3.1$ xterm -bg "black" -fg "white" -fn "10x20 " |
Try using 'gray99' as the color -I thinkl that was what it was when I ran into this problem with some other program.
|
Quote:
I tried making a deliberate mistake on Xresources and xrdb found it. Quote:
Code:
xterm*background: black Then I found some color codes for xterm and tried again the same with PapayaWhip, like this: Code:
xterm*background: black I think I am doing something wrong on my side because also tried a few Xresources from the ones that we posted on this topic on Slax 6.0.3 (a LiveCD) and Xubuntu 7.10 (running as LiveCD) and again it didn't worked! (always running xrdb of course). This... can't be. Not working on 3 different distributions (although Slax is based on Slackware). I am going to download and try it on Knoppix, Fedora liveCD and then FreeSBIE. I will post the results. In any case, thanks a lot guys! :) |
Well, in Slackware it's call from /etc/X11/xinit/xinitrc
Code:
userresources=$HOME/.Xresources File perms? Starting X in an unusual way? Just some thoughts. |
Quote:
Code:
-rw-r--r-- 1 jsmith users 1.1K 2008-07-21 04:47 .Xresources I had this curstom alias to start X in 96 DPI: Code:
alias startx='startx -- -dpi 96' My HOME env var seems ok: Code:
echo $HOME |
Have you tried to query the X resources db to see if your entries made it in?
xrdb -query | grep XTerm |
Since it's not very lengthy, here is my whole xrdb -query:
Code:
XTerm*background: black |
Quote:
|
up
Hi, I've the same problem so is there anybody who discovered a solution ??
|
I've just found this :
http://tldp.org/HOWTO/XWindow-User-H...oreconfig.html maybe it could help sbdy (paragraph 4.1.1) : Code:
*VT100*colorMode: on |
All times are GMT -5. The time now is 11:04 AM. |