![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |