You are not logged in.

#1 2008-04-17 00:45:20

Yes
Member
Registered: 2008-03-29
Posts: 163

[SOLVED] Urxvt can't display all colors?

I figure it has to be something in my .Xdefaults, but I can't find it.  I've copied people's .Xdefaults where I know they can display complex colors, but it still doesn't work with mine.

What I mean by "complex colors" is Urxvt displays this - \[\033[0;38;5;33m\], which is supposed to be a bluish color, as purple.  It works in gnome-terminal, so I know the color is right.

So, does anyone know what might be wrong?  Here's my .Xdefualts:

URxvt*geometry:                 85x30
!urxvt*background:              #000000 !rgba:0000/0000/0000/ffff
Urxvt*background:               #000000
URxvt*foreground:               #aaaaaa
URxvt*inheritPixmap:            true
URxvt*reverseVideo:             false   
URxvt*tintColor:                #dfdfdf
URxvt*shading:          30              
URxvt*fading:                   50              !term unfocus      
URxvt*font:                     xft:snap:size=10
URxvt*scrollBar:                false
URxvt*transparent: true
URxvt*borderLess: true
!urxvt.depth: 32
urxvt*internalBorder: 4
urxvt.secondaryScroll: false

!Xft.dpi:96
!Xft.hinting:true
!Xft.hintstyle:hintslight

Last edited by Yes (2008-04-17 19:38:49)

Offline

#2 2008-04-17 00:58:16

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] Urxvt can't display all colors?

It seems to me that the problem is not with urxvt but with your TERM environment variable. I have "TERM=rxvt-unicode" "COLORTERM=rxvt", and colors work fine (also your code above).

EDIT: If this turns out to be the problem, you can have urxvt to set the TERM variable automatically by having

URxvt.termName: rxvt-unicode

in .Xdefaults.

Last edited by bender02 (2008-04-17 00:59:22)

Offline

#3 2008-04-17 02:02:03

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [SOLVED] Urxvt can't display all colors?

So you have

URxvt.termName: rxvt-unicode
TERM=rxvt-unicode
COLORTERM=rxvt

in your .Xdefaults, in addition to the other stuff?  That didn't work, and neither did just what you had in the codebox.

Thanks.

Offline

#4 2008-04-17 02:15:33

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] Urxvt can't display all colors?

No, sorry, that's not what I meant. TERM and COLORTERM are environment variables - you can see their values by executing 'env' in the command line. I was curious what values you have set for that. They don't belong to .Xdefaults.
That codebox above was just a way to have urxvt automatically set the TERM variable when you run it - in case your problem would be really caused by wrong TERM value.

Offline

#5 2008-04-17 12:38:27

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [SOLVED] Urxvt can't display all colors?

Ah, ok.  Well just putting URxvt.termName: rxvt-unicode in my .Xdefaults didn't work.  Also, running 'env' does show that TERM=rxvt-unicode and COLORTERM=rxvt.

Thanks.

Offline

#6 2008-04-17 15:42:31

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Urxvt can't display all colors?

Just a sidenote. Afaik urxvt only supports 88 colours.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2008-04-17 16:20:36

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: [SOLVED] Urxvt can't display all colors?

there is a urxvt-256 color package in the aur that may be what you are looking for.

http://aur.archlinux.org/packages.php?ID=13060


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#8 2008-04-17 17:43:44

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] Urxvt can't display all colors?

Well, I use the standard rxvt-unicode, and his code above (\[\033[0;38;5;33m\]) changes the color (e.g. "echo '\033[0;38;5;33m colored'" prints "colored" colored smile

Offline

#9 2008-04-17 19:05:19

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [SOLVED] Urxvt can't display all colors?

What color is it, though?  It displays color, just not the right color.

I've installed the urxvt-256 color package, but how do I run it?

Offline

#10 2008-04-17 19:20:25

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [SOLVED] Urxvt can't display all colors?

I can confirm that the code above works properly with the 256-color patched rxvt-unicode. The color is identical to the one I get from gnome-terminal, a medium blue.

Offline

#11 2008-04-17 19:38:37

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: [SOLVED] Urxvt can't display all colors?

Ah, ok.  I uninstalled urxvt and then installed the urxvt-256 color package and it's working great now.  Thanks!

Offline

#12 2008-04-17 23:41:40

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [SOLVED] Urxvt can't display all colors?

I'm sorry for the confusion, I misunderstood your first post. I thought that it shows that it prints the code which you wrote above instead of the color.

Offline

Board footer

Powered by FluxBB