Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COLOURING TEXT ON AIX

Status
Not open for further replies.

sivhaga

IS-IT--Management
Jun 3, 2008
25
I have tried my level best to check on the internet/google on how to make some colors on the text / colouring text.

Eg How do I display text “Peter” in red or blue colour ? I mean echo “Peter” will just print “Peter”,but how do i make it blue
 
echo "\033[31m\033[1m" Peter should print in red

Try other variations of the 0m for other effects.

I want to be good, is that not enough?
 
Sorry, Try other variations of the 0m for other effects. should of course be "Try other variations of the 1m for other effects."

I want to be good, is that not enough?
 
Ok, can you please me the place where i can get all this information.I mean on the site. Is there any other way where i can make a text flush or marquee like in html?
 
ok,let me try and see

but if i use echo "\033[31m\033[1m" Peter
It changes the text background of everything whereas i dont want that, I only want to make only Peter to be red.
e.g Peter is the man

Peter should be only in red
 
Then you need to tuen red off immediately after Peter:

echo "\033[31m\033[1m" Peter "\033[31m\033[0m"is the man

I want to be good, is that not enough?
 
ok

Thank you so much, it works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top