jlogsdon/php-cli-tools — pull request #50 by dsawardekar (2014-04-08 16:36:53+00:00)
Title: Adds support for SHELL_PIPE Environment Variable.

The isPiped() method now looks for the SHELL_PIPE environment variable.
If found it returns true/false based on the value of SHELL_PIPE. If the
variable is absent existing behaviour to detect a tty remains.

Valid values are boolean strings like 1, 0, yes, no, etc.

To make the CLI ignore that the current TTY is a PIPE and thus enable
ASCII formatting, use SHELL_PIPE=0.