Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-11-10 11:48:43

hooger
Member
Registered: 2013-11-10
Posts: 2

[Solved] Xfce4-terminal palette colors take no effect

Hello everyone!
I wished to customize my terminal colors and I had little success.
I used the terminalrc lines find on this website:
http://blogs.n1zyy.com/andrew/2009/02/0 … -terminal/
There is a screenshot of what I expect although the
login@host line and the ~$ lines stay white while they should have different colors. The cursors and the bacground change color as it should.

I made a little research. Tons of website says to check
tput colors
It results 8, it should be 256 if I'm right.
They say to export $TERM=xterm-256color. It makes no difference, although tput color outputs 256. I even wrote it at the end of .bashrc. Same as before.
I tried to change Preferences->Compatibility(last but once tab)->Emulation settings to xterm-256color. It results in an error:
*** VTE ***: Failed to load terminal capabilities from '/etc/termcap'
This is not a surprise as there is no such directory and as far as I know, Debian uses terminfo.

After a little trial and error I got the impression that terminalrc reacts to the following lines:
ColorCursor
ColorBackground
ColorForeground
and ColorPalette<number> lines are ignored. I mean they appear in the pallette of the settings but does not change any color.

Now the question is what should I do?

Oh and my system is: Debian 7 testing (which is Jessy), xfce4-terminal is 0.6.2-3.
Thanks in advance!
hooger

Offline

#2 2013-11-10 14:29:16

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,172

Re: [Solved] Xfce4-terminal palette colors take no effect

login@host line and the ~$ lines stay white while they should have different colors.

You need to change your PS1 prompt. What is it currently?

echo $PS1

Try a PS1 prompt like this:

PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\] '

Offline

#3 2013-11-10 19:26:00

hooger
Member
Registered: 2013-11-10
Posts: 2

Re: [Solved] Xfce4-terminal palette colors take no effect

echo $PS1 gives this:
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\] '
When I changed it to what you said it suddenly worked like charm!
Thank you very much!
I really have no idea what this PS1 is but I will search for it when I have a little more time (actually I already found a topic about this exact question on linuxquestions.org, so it is more accurate to say I will read the answer when I have a little more time smile ).
Thank again!
Bye
hooger

Offline

Board footer

Powered by FluxBB