View Single Post
Old 5th December 2009
tetrodozombie tetrodozombie is offline
Real Name: bill slusser
Banned
 
Join Date: Dec 2009
Location: atlanta, ga
Posts: 82
Default

set a function before you set the prompt like this:

showblu()
{
print "\033[01;34m"
}

PS1='$(showblu)|\w| '

That will keep you from losing color if you compile source from the ports collection.
But, still, you lose color in Vim and Vi. That's where you need colorschemes like pablo and murphy.

Hope this helps somebody who's a stickler for color text like me. I found a way easy way to do it in FreeBSD about a year ago, on the command line, type: vidcontrol -fg green.

I think it's like that. Can't remember, but if you man vidcontrol, it's right there. Put that vidcontrol line in a .profile or .sh script and you've got color. Also, in FreeBSD, vidcontrol can give you and underlined color cursor if you set vidcontrol to desctructive. You also have the option of using vidcontrol to set the reverse bg and fg colors, so when you use a man page you get a really really wicked looking man page.
Reply With Quote