Homec4science

Add color output support for supported platforms on Windows

Authored by Burak Yigit Kaya <ben@byk.im> on Dec 11 2013, 11:55.

Description

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.

See: https://github.com/facebook/libphutil/pull/30

Reviewed by: epriestley

Details

Committed
epriestley <git@epriestley.com>Dec 11 2013, 15:47
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU69490c53c9c2: Work around broken PHP fwrite() on nonblocking pipes
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUbf669d47fdb4: Add color output support for supported platforms on Windows (authored by Burak Yigit Kaya <ben@byk.im>).Dec 11 2013, 15:47