I haven't touched Linux for years but maybe you could use this tput tool as described in this post: http://stackoverflow.com/questions/2...s-from-php-cli