You are not logged in.
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
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\] '
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
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 ).
Thank again!
Bye
hooger
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 530.38 KiB (Peak: 538.17 KiB) ]