facebook/libphutil — pull request #30 by BYK (2013-12-11 10:58:22+00:00)
Title: Add color output support for supported platforms on Windows

Modifies the `disableANSI` code to not outright reject Windows
but check the `TERM` environment variable in case it supports
ANSI colors. This applies to CygWin, PowerShell and integrated
terminals such as the ones in IntelliJ IDEs.

Tested manually in PowerShell, ConEmu and `cmd.exe`.