The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Vim colors in HP-UX kheisler HP-UX 2 06-16-2009 06:17 PM
colors in BASH, doubt with script jaduks Shell Programming and Scripting 4 11-19-2007 05:21 AM
Colors in Ksh Script Serious Sam UNIX for Dummies Questions & Answers 0 08-20-2007 08:01 AM
colors Sage3k UNIX Desktop for Dummies Questions & Answers 1 10-07-2002 05:57 PM
Changing korn shell script text Menu colors? darthur UNIX for Dummies Questions & Answers 6 01-20-2002 07:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-23-2002
hoang hoang is offline
Registered User
  
 

Join Date: Apr 2002
Location: france
Posts: 19
Red face colors in ksh script

hello!

I'd like to print on screen amessage.
What can I do to print this message with blue fonts.

thanks...
  #2 (permalink)  
Old 05-24-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
This will work in korn shell:
print "\033[01;34m Hello \033[00m"

The \033 stands for the escape character, followed by "[01;34" (like saying turn on color, number 34, in a simple way).

To turn it off, I used "\033[00m".

You can even mix them up in one line:

Code:
print "\033[01;34m This \033[00m\033[01;25mthat \033[00mthere"

Have fun!
  #3 (permalink)  
Old 05-29-2002
Atama Atama is offline
Registered User
  
 

Join Date: Jan 2002
Posts: 16
Interesting, is there a man page or some other place that you know of that I can read about that more in depth.

Thanks.
  #4 (permalink)  
Old 05-29-2002
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
See my previous post on the subject: Inverse Video
  #5 (permalink)  
Old 05-29-2002
nattynatty nattynatty is offline
Registered User
  
 

Join Date: Apr 2002
Posts: 31
Very cool,

Is there any place I can get the color codes for different colors?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0