![]() |
| ||
| Colored output in bash? Anyone know how to put colored text on the screen in a bash script? |
| ||
| Re: Colored output in bash? Hi! Use escape sequences: echo -e '\E[color1;color2mYour Text.' (color1 is the foreground, color2 the background color) echo -e '\E[30m black \E[31mred \E[32mgreen \E[33myellow \E[34mblue \E[35mmagenta \E[36mcyan \E[37mwhite' Color: Foreground: Background:Regards, mawe |
| All times are GMT -4. The time now is 12:00 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC