ansicon
ansicon copied to clipboard
FYI: PHP 7.2 for Windows 10.0.10586 will support ANSI escape sequences natively.
Purely for your information, PHP 7.2.0 beta 1 will support ANSI escape sequences on Windows 10.
https://github.com/php/php-src/blob/php-7.2.0beta1/UPGRADING
- Windows Support
- Support for VT100 console mode
On systems starting with 10.0.10586, cmd.exe supports ANSI escape sequences. The corresponding console mode is enabled by default on CLI on suitable systems. As well, the function sapi_windows_vt100_support() is provided, to control and query the corresponding information in the scripts.
As this is still a beta, things can change.
Technically it's ConhostV2.dll that supports escapes (ConhostV1.dll being the legacy version that doesn't).
Ha! Just the messenger.