kevinlebrun/colors.php — pull request #3 by camspiers (2012-11-28 04:59:01+00:00)
Title: Forcetty option for use when colours are desired but php's STDOUT is not a tty

Love the project. Thanks a lot for it.

There are certain situations where forcing colors.php to output colors is desirable regardless of whether php is reporting that STDIN is a tty. In my particular situation grunt (node) is executing a php script using colors.php and I am unable to pass the tty to php regardless of what I do in node. Perhaps others will also experience a similar problem, and having the option will be as useful as it is to me.