You are not logged in.

#1 2010-08-04 20:10:54

Arch_Adam
Member
From: United Kingdom
Registered: 2010-05-13
Posts: 22

[SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

I have got the 256 color version of urxvt, when i install a theme for irssi with a nice array of subtle colors, the colors default to the basic colors in urxvt, and do not show the proper settings of colors.
i have run 'tput colors', that outputs '256', so i'm very confused.

any ideas?

Last edited by Arch_Adam (2010-08-04 23:52:38)


If everyone is thinking alike, then somebody isn't thinking.
George S. Patton

Offline

#2 2010-08-04 20:24:42

splittercode
Member
From: WI, USA
Registered: 2010-03-16
Posts: 203

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

This probably isn't the root of your problem, and you might already be aware of it, but if you were expecting peoples screenames to be colored in irssi you'll have to use the nickcolor.pl script from http://scripts.irssi.org/ regardless of the theme you choose.

Offline

#3 2010-08-04 20:32:40

Arch_Adam
Member
From: United Kingdom
Registered: 2010-05-13
Posts: 22

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

splittercode wrote:

This probably isn't the root of your problem, and you might already be aware of it, but if you were expecting peoples screenames to be colored in irssi you'll have to use the nickcolor.pl script from http://scripts.irssi.org/ regardless of the theme you choose.

i have a script that displays an array of colors, and it only shows like 9 main colors even though there should be a lots of different colors coming through.
its not just irssi, that was just an example.


If everyone is thinking alike, then somebody isn't thinking.
George S. Patton

Offline

#4 2010-08-04 21:44:59

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

This script will show all the 256 colors without detecting the terminal capabilities first
(that's to say, it just dumbly prints out all 256 different color escape sequences. If your
terminal can display 256 colors correctly then you'll see it, otherwise you see less than
256 colors and some artifacts). I have been using rxvt-unicode-256color and it displays
all 256 colors via this script.

http://www.vim.org/scripts/script.php?script_id=1349

If you do see 256 colors correctly then it's a configuration problem. Somehow your
terminal program thinks your terminal can't display 256 colors so it uses less colors.

If you see less than 256 colors, then the problem is within your terminal.

Edit: I see you already have a similar script, does your script just dump all 256 color
codes without querying the terminal type?

Last edited by eirika (2010-08-04 21:49:28)

Offline

#5 2010-08-04 22:01:39

Arch_Adam
Member
From: United Kingdom
Registered: 2010-05-13
Posts: 22

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

eirika wrote:

This script will show all the 256 colors without detecting the terminal capabilities first
(that's to say, it just dumbly prints out all 256 different color escape sequences. If your
terminal can display 256 colors correctly then you'll see it, otherwise you see less than
256 colors and some artifacts). I have been using rxvt-unicode-256color and it displays
all 256 colors via this script.

http://www.vim.org/scripts/script.php?script_id=1349

If you do see 256 colors correctly then it's a configuration problem. Somehow your
terminal program thinks your terminal can't display 256 colors so it uses less colors.

If you see less than 256 colors, then the problem is within your terminal.

Edit: I see you already have a similar script, does your script just dump all 256 color
codes without querying the terminal type?

Yeah that throws out all the colors, so i reckon its going to be a urxt setting to place .Xdefaults maybe, ill have a scout around now, thanks for the script! :-)


If everyone is thinking alike, then somebody isn't thinking.
George S. Patton

Offline

#6 2010-08-04 22:19:18

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

What do the following commands say?

$ echo $TERM
$ infocmp rxvt-256color

Usually 256-color version of urxvt has the type rxvt-256color and you have
to set the TERM environment variable to it to make use of all 256 colors.

Offline

#7 2010-08-04 22:27:38

Arch_Adam
Member
From: United Kingdom
Registered: 2010-05-13
Posts: 22

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

eirika wrote:

What do the following commands say?

$ echo $TERM
$ infocmp rxvt-256color

Usually 256-color version of urxvt has the type rxvt-256color and you have
to set the TERM environment variable to it to make use of all 256 colors.

ok the command outputs: rxvt-256color,
and the second command out puts this:

http://pastebin.org/448060
.

How would i set the TERM environment variable too?


If everyone is thinking alike, then somebody isn't thinking.
George S. Patton

Offline

#8 2010-08-04 22:50:23

eirika
Member
From: New York
Registered: 2009-09-14
Posts: 65

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

to set an environment variable

$ export TERM=rxvt-256color

However you already have the correct value for TERM and
you also have the correct terminfo entry. Which means
you already have everything set up correctly in the urxvt
side.

A google search suggests that irssi doesn't support
256 colors:

http://www.guckes.net/irssi/index.html

Just search for '256' in the page and see by yourself.
I don't know if this is up to date though.

AFAIK 256 color is an extension of xterm so lots
of programs don't support it. They tend to
stick to old 8 or 16 colors.

Last edited by eirika (2010-08-04 22:57:04)

Offline

#9 2010-08-04 23:55:24

Arch_Adam
Member
From: United Kingdom
Registered: 2010-05-13
Posts: 22

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

solved, i had to set the colors manually in .Xdefaults Urxvt*color:1:#00000 and so on, to achieve the more subtle look i was after.


If everyone is thinking alike, then somebody isn't thinking.
George S. Patton

Offline

#10 2010-08-05 05:29:54

grizzeledtop
Member
From: Zurich, Switzerland
Registered: 2006-03-08
Posts: 30

Re: [SOLVED]urxvt 256 color, seems like its not displaying 256 colors.

same problem here; could you post your color listing from .Xdefaults (.Xresources)?


You scratch my back, I'll ride on yours

Offline

Board footer

Powered by FluxBB