Schriftfarbe Konsole

Hallo,

hat jemand eine Ahnung, wie ich aus einem bash-Script heraus die Textfarbe auf der Konsole vorübergehend ändern kann?

Gruß
Tilo

Hallo,

Hi,

hat jemand eine Ahnung, wie ich aus einem bash-Script heraus
die Textfarbe auf der Konsole vorübergehend ändern kann?

Ja.

frank@harbard [~] $ echo -e '\e[31;01mred, \e[33;01myellow, \e[36;01mcyan, \e[32;01mgreen \e[0mand gray'
red, yellow, cyan, green and gray
frank@harbard [~] $

HTH,
Gruss vom Frank.

Hi !

Hallo,

hat jemand eine Ahnung, wie ich aus einem bash-Script heraus
die Textfarbe auf der Konsole vorübergehend ändern kann?

echo -e "\033[1;32mIch bin grün\033[0;30m"

http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html für die restlichen Codes…

Alexander