The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
getting colored output in perl s123.radha Shell Programming and Scripting 2 04-22-2008 12:19 AM
Zshell Colored output tolmark UNIX for Dummies Questions & Answers 0 04-07-2008 07:02 PM
Removing Null data in output liketheshell Shell Programming and Scripting 2 08-13-2007 01:59 PM
kstat - format of output data? ozvena UNIX for Dummies Questions & Answers 4 06-16-2005 01:35 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-10-2003
Registered User
 

Join Date: Feb 2002
Posts: 23
colored data output

Hi,

I am working with HP-UX 11.
I try to make an colored data output with echo.

I tried the following:

echo "\033]32m Red"

This works perfectly in my terminal.
But when I type the same at the hpterm, it does not work, the terminal just prints the complete text "\033]32m Red" without color.

Is there another way to make colored output, independent from the shell?!

Thx for your help

Ben Sky
Forum Sponsor
  #2  
Old 11-11-2003
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Im not sure how to get a red output, but if you simply want your text to standout then check out the command tput. Specifically, look at the bold option. I use HPUX 11.X and on this machine, the bold option sets the output to blue text.

Also, try doing something like this..I dont really know if this will work! A shot in the dark if you will.

RED_ON=`\033]32m Red`
RED_OFF=`Add the Red off sequence here`

echo "$RED_ON Add Your Text Here $RED_OFF"
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0