-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Windows 10 console seems to now provide ANSI support without ANSICON. #17499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Windows + gitbash for example isn't working as nice either (or powershell for that matter). |
Just noticed this thanks to composer, and it does not play nice at all. See below screenshot: It seems as if the escape sequence is not interpreted, maybe there's a windows-flavored-ansi? edit: Affected versions are windows 10 preview builds. AFAIK this is not in retail yet. edit 2: More detailed reading here -> http://www.nivot.org/blog/post/2016/02/04/Windows-10-TH2-%28v1511%29-Console-Host-Enhancements |
This has been fixed in #18385 but the fix doesn't really seem to work as per composer/composer#5323 |
I am running Insider Preview, so sorry for jumping the gun on this one. |
If this hasn't been mentioned before, the global workaround for Windows is:
Adding the "--no-ansi" flag at the launch script of composer eliminates the need to flag it for every command. |
I'm posting here since it's the only open issue regarding color support on Windows. A short history:
I've managed to find some time to suggest the PHP core team a new function to enable ANSI colors under Windows: see php/php-src#2103. When everything will be ready, I'll create a new PR to add color support for Symfony under newer builds of Windows. |
Closing as this is fixed now. |
Seems like the implementation is incomplete.
That makes an equality check, but I guess it's supposed to be |
@kelunik Nope. Starting from PHP 7.2, PHP enables this feature on startup, and we have the |
Windows 10 added support for ANSI colors since Build 10586. From Build 14393 ANSI needs to enabled by executable, hence os.system('') is used Source : https://stackoverflow.com/a/39675059 symfony/symfony#17499
Windows 10 added support for ANSI colors since Build 10586. From Build 14393 ANSI needs to enabled by executable, hence os.system('') is used Source : https://stackoverflow.com/a/39675059 symfony/symfony#17499
\Symfony\Component\Console\Output\StreamOutput::hasColorSupport()
will probably need updating as Windows 10 ConHost+CMD now seems to provide ANSI support without the need to use ANSICON.Whilst doing that is/should be easy enough, I don't know how to get the terminal dimensions for
\Symfony\Component\Console\Application::getTerminalDimensions
.The text was updated successfully, but these errors were encountered: