As you know, the
php artisan command has the
--ansi option to force the ANSI colour output. Anyway, if you have developed your artisan command, you may wish to display its output in ANSI colour mode, you can force it by using:
$this->getOutput()->setDecorated( true );
Of course, you may put the above code in your construct method.