[OT] Re: Change an active Terminal's background color

Harold Aling h.aling at home.nl
Fri Feb 2 15:12:39 CET 2007


>> made to work in .bashrc - I tried it unsuccessfully in 
>> Vector.
>>
>> - - - code - - -
>> function setprompt
>> {
>> local RED="\[$(tput setaf 1)\]"
>> local RESET="\[$(tput sgr0)\]"
>> if [ `id -u` = 0 ] # check if user is root
>> then
>> PS1="$RED[\u@\h:\W]$RESET "
>> else
>> PS1="[\u@\h:\W]$RESET "
>> fi
>> }
>> setprompt
>>
>> - - - end - - -
>>     
>
> Yet another "I do", I do this in my .zshrc:
>
> if [ "$SSH_CONNECTION" != "" ]
>   then
>     HOST="`hostname`/ssh"
>     PROMPT=$'%U'$HOST'%u[%B%h%b]:%B%c%b%% '
>     unset HOST
>     alias halt='echo Are you sure?'
> else
>     PROMPT=$'%U%m%u[%B%h%b]:%B%c%b%% '
> fi
> RPROMPT=$'[%D-%T]'
>   
Changing prompt color is not very difficult, but changing the background 
(on-the-fly) is much more, emh, <english word for instant visual 
recognition>...

This topic has received the [OT] prefix, so I guess changing background 
color isn't possible in Terminal... Too bad.

I've posted a feature request in bugzilla: 
http://bugzilla.xfce.org/show_bug.cgi?id=2857

Maybe this can be possible in the future...

-H-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20070202/554a5d9f/attachment.html>


More information about the Xfce mailing list