wp-cli/php-cli-tools — pull request #2 by dsawardekar (2014-04-07 05:32:23+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.