colorizing output in bash
| From: | Ali Chahvand | Date: | Sun, 16 Feb 2003 14:44:07 +0000 |
| Subject: | colorizing output in bash | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135750@lists.php.net to get a copy of this message | ||
Hi ,
i'm using php in the command line and code snippet looks like:
<?php
echo "\033[1mTesting\033[0m\n";
echo "\e[31;1mTesting\e[m\n";
?>
I use ANSI sequences to colorize the output in the bash. Well executing
echo -e "\e[31;1mTesting\e[m";
in the bash works fine but doesn't in php. The bold stuff work fine
using php and bash , so i was wondering why this behavior shows up.
any clues, or redirections to other mailing lists?
regards Ali