You are not logged in.

#1 2010-08-13 13:25:57

marfig
Member
From: Portugal
Registered: 2010-07-30
Posts: 189
Website

[SOLVED] Understanding the color space in a 256 color console emulator

Hello all,

I'm trying to define URxvt display colors in .XDefaults. But I need help understanding some basic concepts: Many of the colors I try to define aren't displayed. How can I properly choose color codes that are available to my console emulator? What is the process you folks use in defining your console emulator colors. How do you know which ones are available and their codes (i'm running X in 24bit color depth)

Below is what I achieved so far (adapted from a theme by Aaron Griffin). But it was a a painful process to come up with working codes.

*background: rgb:00/00/00
*foreground: rgb:7f/7f/7f
*color0:     rgb:00/00/00
*color1:     rgb:9e/18/28
*color2:     rgb:33/66/33
*color3:     rgb:66/66/33
*color4:     rgb:41/41/71
*color5:     rgb:66/33/66
*color6:     rgb:33/66/66
*color7:     rgb:be/be/be
*color8:     rgb:66/66/66
*color9:     rgb:cc/99/99
*color10:    rgb:66/99/66
*color11:    rgb:96/8a/38
*color12:    rgb:41/86/be
*color13:    rgb:99/66/99
*color14:    rgb:66/99/99
*color15:    rgb:ff/ff/ff

Last edited by marfig (2010-08-13 15:08:20)


I probably made this post longer than it should only because I lack the time to make it shorter.
- Paraphrased from Blaise Pascal

Offline

#2 2010-08-13 14:35:58

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: [SOLVED] Understanding the color space in a 256 color console emulator

I don't use the rgb colour codes, mine are like this:

*background: #111111
*foreground: #babdb6
...

For the codes I cheat using GIMP, I just pick a colour that I like, copy the code and put # in front of it.

Last edited by Varg (2010-08-13 14:37:24)

Offline

#3 2010-08-13 15:07:37

marfig
Member
From: Portugal
Registered: 2010-07-30
Posts: 189
Website

Re: [SOLVED] Understanding the color space in a 256 color console emulator

Ok, that was my problem.
Varg, you bring sanity back into my life.

Thanks.


I probably made this post longer than it should only because I lack the time to make it shorter.
- Paraphrased from Blaise Pascal

Offline

#4 2010-08-13 15:12:39

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] Understanding the color space in a 256 color console emulator

You can as well use the "official" color names as listed in Xterm256 color names for console Vim. This table also shows the rgb eqivalents.


To know or not to know ...
... the questions remain forever.

Offline

#5 2010-08-13 15:18:41

marfig
Member
From: Portugal
Registered: 2010-07-30
Posts: 189
Website

Re: [SOLVED] Understanding the color space in a 256 color console emulator

Those are for xterm, correct?
I mean, in URxvt I can choose from the whole gamut, but on xterm I'm limited to those?


I probably made this post longer than it should only because I lack the time to make it shorter.
- Paraphrased from Blaise Pascal

Offline

#6 2010-08-13 16:02:04

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: [SOLVED] Understanding the color space in a 256 color console emulator

marfig wrote:

Ok, that was my problem.
Varg, you bring sanity back into my life.

Thanks.

No problem big_smile

Offline

Board footer

Powered by FluxBB