Re: CLI bunter machen
On Mon, 24 Sep 2007 the mental interface of
Jochen Schulz told:
[...]
> Die Farben des Prompts halte ich auf allen Rechnern
> unterschiedlich, Außerdem bekommt root einen roten Usernamen.
#!/bin/sh
# Display ANSI colors.
#
esc="\033["
echo -e "\t 40\t 41\t 42\t 43\t 44\t45\t46\t47"
for fore in 30 31 32 33 34 35 36 37; do
line1="$fore "
line2=" "
for back in 40 41 42 43 44 45 46 47; do
line1="${line1}${esc}${back};${fore}m Normal ${esc}0m"
line2="${line2}${esc}${back};${fore};1m Bold ${esc}0m"
done
echo -e "$line1\n$line2"
done
# EOF
Hehehehe ;)
Elimar
--
"Talking much about oneself can also
be a means to conceal oneself."
-Friedrich Nietzsche
Reply to: