You are not logged in.

#1 2016-11-28 22:34:59

Malkawi
Member
Registered: 2016-11-26
Posts: 15

[SOLVED]urxvt not showing 256 colors correctly

Hello everyone, I hope you're having a nice day smile

The wiki says that urxvt comes natively with 256 color support, but in order to enable that feature you have to add a simple line to .Xresourse. To be 100% sure, I installed "rxvt-unicode-256xresources" from the AUR and added "URxvt.color12: rgb:5c/5c/ff" to my .Xresource file. I also ran "echo $TERM" to make sure that I was running the correct terminal program and I got "rxvt-unicode-256color". I thought I was all set until I ran a color test script from "https://github.com/chriskempson/base16-shell", in which my terminal failed. Here is the output I get from it:

http://i.imgur.com/GGRBuIf.png

What should I exactly do in order to fix this?

Last edited by Malkawi (2016-11-29 01:52:16)

Offline

#2 2016-11-28 22:56:54

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED]urxvt not showing 256 colors correctly

you don't have any colour overrides in your shell configurations, or Xresources?

Offline

#3 2016-11-28 23:02:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]urxvt not showing 256 colors correctly

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-11-28 23:09:32

Malkawi
Member
Registered: 2016-11-26
Posts: 15

Re: [SOLVED]urxvt not showing 256 colors correctly

HiImTye wrote:

you don't have any colour overrides in your shell configurations, or Xresources?

Yep, you were right. I disabled anything related to colours in my .Xresources file, made sure that the base16 script thing was running and tried again. Colors 0-15 are now displaying correctly, but 16-21 are not. Which means that my terminal is not showing 256 colors(according to the github page).

Here is the output after disabling color overrides : imgur

Last edited by Malkawi (2016-11-28 23:11:23)

Offline

#5 2016-11-28 23:11:36

Malkawi
Member
Registered: 2016-11-26
Posts: 15

Re: [SOLVED]urxvt not showing 256 colors correctly

jasonwryan wrote:

Read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code

Fixed it smile

Offline

#6 2016-11-28 23:42:09

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED]urxvt not showing 256 colors correctly

what does this output?

Offline

#7 2016-11-29 00:10:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [SOLVED]urxvt not showing 256 colors correctly

I can say what *I* output when I read that thing "Someone has never heard of a for loop!" - that's a 365 line script to output 256 colors.  There are many sane scripts to display the 256 color pallette, that is most definitely not one of them.  Here's mine:

for i in $(seq 0 255); do
	printf "\e[0;48;5;${i}m %03d\e[0;38;5;${i}m %03d " $i $i
	[[ $i -eq 7 || $i -eq 15 || $i -eq 231 || $i -eq 239 || $i -eq 247 ]] && echo
	[[ $i -ge 15 && $i -le 231 && $(( ($i - 15) % 6 )) -eq 0 ]] && echo
done

@Malkawi, you say 16-21 are not right - but they look fine to me.  How does the output you're getting differ from what you expect?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2016-11-29 01:44:13

Malkawi
Member
Registered: 2016-11-26
Posts: 15

Re: [SOLVED]urxvt not showing 256 colors correctly

HilmTye wrote:

what does this output?

Trilby wrote:

There are many sane scripts to display the 256 color pallette, that is most definitely not one of
them.  Here's mine:

Here is the output I got from both of your color-tests wink

Trilby wrote:

@Malkawi, you say 16-21 are not right - but they look fine to me.  How does the output you're
getting differ from what you expect?

This is the output I am expecting, According to This github post.

The guy on github wrote:

Run the included colortest script and check that your colour assignments appear
correct. If your terminal does not support the setting of colours in within the 256 colorspace (e.g. Apple
Terminal), colours 17 to 21 will appear blue.

Last edited by Malkawi (2016-11-29 01:46:25)

Offline

#9 2016-11-29 01:55:25

Malkawi
Member
Registered: 2016-11-26
Posts: 15

Re: [SOLVED]urxvt not showing 256 colors correctly

This turned out to be a completely unnecessary post and I apologize. I just noticed that I have to apply the theme before running the color test script. Thanks for everyone who tried to help me and I'm sorry for wasting your time.

Offline

Board footer

Powered by FluxBB