Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make iterm show ansi by default

My home and work computers are both running Mountain Lion w/ latest update.

However, on my work computer, I couldn't get ansi output by default when using laravel or symfony-console component. I need to use --ansi switch to get the colors. I'm using Solarized Dark color scheme.

In home computer, I don't need to set --ansi switch.

So, how can I set to detect terminal ansi by default ?

NOTE: I did try to add CLICOLOR=1 in .bash_profile file. It doesn't work.

like image 205
aacanakin Avatar asked Oct 03 '22 15:10

aacanakin


1 Answers

Same with you, after check the Symfony\Component\Console\Output\StreamOutput. I install the php posix extension via sudo yum --enablerepo=remi install php-posix then the ansi color is enabled default!

like image 89
bnu_oxkiller Avatar answered Oct 22 '22 23:10

bnu_oxkiller