![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| color,bold | charandevu | Shell Programming and Scripting | 0 | 04-07-2008 04:24 AM |
| How can i make this bold | moe2266 | UNIX for Dummies Questions & Answers | 10 | 08-06-2007 01:13 PM |
| Bold text | svh | High Level Programming | 3 | 08-29-2005 02:04 AM |
| Bold the paragraph | caprikar | Shell Programming and Scripting | 3 | 12-22-2003 06:44 PM |
| Bold Text? | Atama | UNIX for Dummies Questions & Answers | 4 | 04-12-2002 10:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
ksh - how to echo something in color and bold
Hi all,
I was to echo Hi in Red and Bold ; and echo There is in Green and bold I got bold to working using tput bold but i am having hard time getting the color. Any help is appreciated, jak |
|
||||
|
What exactly change text colour and/or bold/offbold?
red: echo "\033[1;31mhi\033[m" green: echo "\033[1;32mhi\033[m" yellow: echo "\033[1;33mhi\033[m" blue: echo "\033[1;34mhi\033[m" Franci Last edited by frajer; 03-18-2008 at 05:25 AM.. |
|
||||
|
ksh - how to echo something in color and bold
Here are the color codes and others:
LF="\n"; CR="\r" INVT="\033[7m"; NORM="\033[0m"; BOLD="\033[1m"; BLINK="\033[5m" #UNDR="\033[2m\033[4m"; EOL="\033[0K"; EOD="\033[0J" UNDR="\033[4m"; EOL="\033[0K"; EOD="\033[0J" SOD="\033[1;1f"; CUR_UP="\033[1A"; CUR_DN="\033[1B"; CUR_LEFT="\033[1D" CUR_RIGHT="\033[1C" #-- ANSI code SCR_HOME="\033[0;0H" #-- Home of the display BLACK_F="\033[30m"; BLACK_B="\033[40m" RED_F="\033[31m"; RED_B="\033[41m" GREEN_F="\033[32m"; GREEN_B="\033[42m" YELLOW_F="\033[33m"; YELLOW_B="\033[43m" BLUE_F="\033[34m"; BLUE_B="\033[44m" MAGENTA_F="\033[35m"; MAGENTA_B="\033[45m" CYAN_F="\033[36m"; CYAN_B="\033[46m" WHITE_F="\033[37m"; WHITE_B="\033[47m" Example: bold echo "${BOLD}Bold test ${NORM}" -Ramesh |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|