Howdy,
You have to send it an ANSI escape. First, you need to either use 'echo -e'
(the -e switch allows it to interpret backslash sequences) or the 'printf'
command.
Now, escape sequences for colors (you can also do cursor movement with them)
are of the form "\033[0;34m", so to turn the text bright blue and then back to
normal you would type:
echo -e "\033[1;34mThis is bright blue text.\033[0m"
Here's a list of ANSI color escape sequences (stolen from the
Bash-Prompt-HOWTO):
Black 0;30 Dark Gray 1;30
Blue 0;34 Light Blue 1;34
Green 0;32 Light Green 1;32
Cyan 0;36 Light Cyan 1;36
Red 0;31 Light Red 1;31
Purple 0;35 Light Purple 1;35
Brown 0;33 Yellow 1;33
Light Gray 0;37 White 1;37
Regards,
Ben Logan
On Fri, 8 Sep 2000 12:41:19 -0400, [EMAIL PROTECTED] said:
> If I type <echo "Hello World" > /dev/tty12> the text Hello World
> appears on the virtual console number 11. Does anyone know how I could
> change this text to another color?
>
>
> --
> Is your email secure? http://www.pop3now.com
> (c) 1998-2000 secureFront Technologies, Inc. All rights reserved.
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list