Skip to content
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

in win10 cmd messy code #5542

Closed
dingdayu opened this issue Jul 24, 2016 · 6 comments
Closed

in win10 cmd messy code #5542

dingdayu opened this issue Jul 24, 2016 · 6 comments
Labels

Comments

@dingdayu
Copy link

in win10 x64:

image

@alcohol
Copy link
Member

alcohol commented Jul 25, 2016

Can you check if this comment helps: 5323#issuecomment-220871883

@dingdayu
Copy link
Author

@alcohol I consulted a senior, he told me it was because ASCII Color .

@alcohol
Copy link
Member

alcohol commented Jul 26, 2016

@dingdayu I know, you can explicitly turn off ansi coloring using the --no-ansi flag.

But the comment I linked contains a setting you can toggle on/off, for the windows command prompt (win10 only). That should also fix it, and you can have colored output then.

@ste93cry
Copy link

ste93cry commented Aug 3, 2016

Same problem here after upgrading to Windows 10 Anniversary Update (build 10.0.14393). It worked fine before

@stof
Copy link
Contributor

stof commented Aug 18, 2016

see the discussion in the Symfony issue referenced above. PHP will need to tell windows it wants this feature. Enabling it for all executables in the previous Windows 10 version was a mistake.

@alcohol alcohol closed this as completed Aug 18, 2016
@cirdog
Copy link

cirdog commented Aug 26, 2016

If this hasn't been mentioned before, the global workaround for Windows is:

C:\ProgramData\ComposerSetup\bin\composer.bat
(edit its content)
php "%~dp0composer.phar" %* --no-ansi

Adding the "--no-ansi" flag at the launch script of composer eliminates the need to flag it for every command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants