You are not logged in.

#1 2011-05-19 13:52:39

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

[Solved]Colorizing bash issue

I'm trying to colorize bash' prompt, but when I set a simple bold color, output looks like bold-intense. I use variables substitutions taken from https://wiki.archlinux.org/index.php/Color_Bash_Prompt. i.e.

Red='\e[0;31m'
BRed='\e[1;31m'
IRed='\e[0;91m'
BIRed='\e[1;91m'

but this is what I obtain
aBXGr.png
As you can see, normal red is correct, also Intense or Bold-Intense. But simple Bold is equivalent to Bold-Intense. I use roxterm (awesome emulator!!!), with $TERM=xterm and blank $COLORTERM.

Thanks in advance.

Last edited by 4javier (2011-05-23 13:37:08)

Offline

#2 2011-05-19 14:04:20

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved]Colorizing bash issue

Try with:

export TERM="xterm-256color"

Offline

#3 2011-05-19 14:52:20

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [Solved]Colorizing bash issue

Thanks for reply :-)
Doesn't work:
szHzf.png

Offline

#4 2011-05-19 15:46:34

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [Solved]Colorizing bash issue

have you checked your terminal colors in roxterm? roxterm uses one of three pre-defined color schemes as default, but you are free to define your own color scheme in your own roxterm profile.

edit:added some info

Last edited by roygbiv (2011-05-19 16:07:24)

Offline

#5 2011-05-19 17:12:21

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [Solved]Colorizing bash issue

I selected 16 colours palette, but Bold, as Intense, is influenced by the one highlighted into the image, while it should pick the second of the first row.
JKKxr.png
Could the $COLORTERM variable has something to do with that?

Offline

#6 2011-05-22 10:21:40

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [Solved]Colorizing bash issue

same thing happens with xfce4-terminal hmm

Last edited by 4javier (2011-05-22 10:21:54)

Offline

#7 2011-05-22 15:25:10

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [Solved]Colorizing bash issue

this is not a terminal issue, actually it is normal behaviour. both your bold colors (1;30-37) and bold-intense colors (1;90-97) are equivalent. i use the .Xdefaults file to define my urxvt terminal colors as follows: color0-7 (normal) color8-15 (bold):

*background: rgb:00/00/00
*foreground: rgb:ff/ff/ff

*color0:     rgb:00/00/00
*color1:     rgb:a8/00/00
*color2:     rgb:00/a8/00
*color3:     rgb:a8/54/00
*color4:     rgb:00/00/a8
*color5:     rgb:a8/00/a8
*color6:     rgb:00/a8/a8
*color7:     rgb:42/42/42
*color8:     rgb:00/00/00
*color9:     rgb:f8/54/50
*color10:    rgb:50/fc/50
*color11:    rgb:f8/fc/50
*color12:    rgb:50/54/f8
*color13:    rgb:f8/54/f8
*color14:    rgb:50/fc/f8
*color15:    rgb:f8/fc/f8

when you change the value of a bold color, the bold-intense gets the same value. i don't know why we have both. anyway, if you want 'normal' color for your bold text, simply define it in your color scheme.

Offline

#8 2011-05-23 11:27:23

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [Solved]Colorizing bash issue

Are you saying it's normal that the Bold code, pick up the same palette position than Intense code instead of Normal one? It sounds strange to me...
Doing so, I lose the difference between Intense and Normal hmm
P.S.
roxterm is vte-based, so I have to change the palette from its preference, I don't think it can read urxvt-style settings.

Offline

#9 2011-05-23 12:01:01

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [Solved]Colorizing bash issue

4javier wrote:

Are you saying it's normal that the Bold code, pick up the same palette position than Intense code instead of Normal one? It sounds strange to me...
Doing so, I lose the difference between Intense and Normal hmm

it's strange behaviour, but i have not seen any use of the bold-intense colors in color configurations, so i'm guessing maybe it's outdated. i manage quite well with my 16 + 8 colors (normal and bold + intense) anyway smile.

4javier wrote:

P.S.
roxterm is vte-based, so I have to change the palette from its preference, I don't think it can read urxvt-style settings.

of course, it was only for illustration purpose.

Offline

#10 2011-05-23 12:49:02

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [Solved]Colorizing bash issue

So, are you stuck with the problem that Bold bit automatically activate Intense bit, as I am?

Offline

#11 2011-05-23 13:09:30

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [Solved]Colorizing bash issue

4javier wrote:

So, are you stuck with the problem that Bold bit automatically activate Intense bit, as I am?

yes.

Offline

#12 2011-05-23 13:36:51

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 115

Re: [Solved]Colorizing bash issue

Ok, thanks a lot to everybody. smile

Last edited by 4javier (2011-05-23 13:37:23)

Offline

Board footer

Powered by FluxBB