test.php
<?php
require_once('color.php');
ansi::set_color('red');
echo 'Text will be red until futher notice.', "\n", 'Although it makes newlines look a bit shit with...', "\n";
ansi::set_color(FALSE, 'blue');
echo 'Background colors. Ewww!', "\n", 'This is pretty horrible, right? Let\'s go back to ...';
ansi::set_color();
echo "\nNormal! Phew. This text looks better.\n";
$colored = ansi::csprintf('blue', FALSE, 'Here\'s some blue text with %d format code in it.', 1);
echo 'Regular text...', $colored, "\n";