2

I have this problem on Windows 10 -- PHP Composer showing strange characters.

php composer screenshot

I have tried to install ansicon as suggested here and it solved the problem but then if I try to use terminal in JetBrains PhpStorm it's crashing...

Maybe I need to fix it without that ansicon but I can't find how.

I have this problem only on my Laptop -- on my Desktop it's working perfectly fine. They both have Windows 10 and PHP + Composer at the latest versions.

Community
  • 1
  • 1
Tomer Ofer
  • 378
  • 3
  • 15
  • Those are escape sequences -- usually used to represent color info in plain-text output. Try [ConEmu](https://conemu.github.io/) program as your console/terminal replacement if you will not be able to make it work in native Windows 10 console. – LazyOne Aug 10 '16 at 19:45
  • Thanks but it's too complicated, with too many options. I end up using bash on ubuntu on windows, working great! [install bash on windows 10](http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/) – Tomer Ofer Aug 12 '16 at 11:16
  • I have the same problem, but it used to work correctly. Maybe the windows anniversary update broke some things? – Cheshire Aug 20 '16 at 13:42
  • @Cheshire you are right, apparently after the anniversary update on my desktop i got the problem too... but i'm using git bash or PowerShell so it's fine... don't need the old CMD anymore :) – Tomer Ofer Oct 19 '16 at 10:43

1 Answers1

2

I had the same problem, friend.

Have you tried PowerShell? Only if you didn't notice, but it is also available on Github now: https://github.com/PowerShell/PowerShell

PHP Composer on PowerShell

I think the problem is that the common Windows terminal does not support the ANSI/VT100 colors.

Check this old thread: How to make win32 console recognize ANSI/VT100 escape sequences?

Hope this helps.

Community
  • 1
  • 1