Computing.Net > Forums > Unix > Using colors in KSH

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Using colors in KSH

Reply to Message Icon

Name: BlueBird
Date: May 13, 2004 at 03:22:42 Pacific
OS: HP UX 11
CPU/Ram: Risc processor, 3 GB
Comment:

Hi there,
I have a very simple question. How can I use colors in a .ksh menu?

Thankx for your reply.



Sponsored Link
Ads by Google

Response Number 1
Name: Wolfbone
Date: May 13, 2004 at 07:41:20 Pacific
Reply:

Just use the color escape sequences with echo -e or print:

"\033[1;31mSomething in bright red\n"

"\033[32mSomething in green\n"

"\033[1;37m\033[41mSomething in bright white on red\033[m\n"


0
Reply to Message Icon

Related Posts

See More


UNIX Current & Future... Unix command



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Using colors in KSH

using functionality in ksh www.computing.net/answers/unix/using-functionality-in-ksh/8000.html

using functionality in another ksh www.computing.net/answers/unix/using-functionality-in-another-ksh/8003.html

Send email with attachment in ksh www.computing.net/answers/unix/send-email-with-attachment-in-ksh/8004.html