set background color

This commit is contained in:
hjp 2009-06-10 19:10:20 +00:00
parent 1f23956001
commit 24d5f80eed
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ then
# it doesn't work with konsole or gnome-terminal.
echo -n '[?67h'
stty erase 
if [ -f ~/.zxtermcolors ]
then
. ~/.zxtermcolors
else
perl -e 'printf(qq{if whence xtermcontrol >/dev/null\nthen\nxtermcontrol --bg "#%02X%02X%02X"\nfi\n}, map { rand(128)+128 } qw(1 1 1))' > ~/.zxtermcolors
fi
else
prompt="%B%m:%~ %T %h%# %b"
fi