ansicon icon indicating copy to clipboard operation
ansicon copied to clipboard

FYI: PHP 7.2 for Windows 10.0.10586 will support ANSI escape sequences natively.

Open rquadling opened this issue 8 years ago • 2 comments

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

  1. 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.

rquadling avatar Jul 26 '17 09:07 rquadling

Technically it's ConhostV2.dll that supports escapes (ConhostV1.dll being the legacy version that doesn't).

adoxa avatar Jul 26 '17 11:07 adoxa

Ha! Just the messenger.

rquadling avatar Jul 26 '17 13:07 rquadling