Search code examples
laravellaravel-artisanmingw-w64

Hot to remove ←[39m from mingw64 when executing artisan command


I am having problem with mingw64 console.
When I execute artisan commands from mingw64 console each output line is prefixed and sufixed with "←[39m":

enter image description here

Any idea how to fix it?


Solution

  • Those are ANSI color codes. It's not a problem with Laravel or Artisan.

    With a shell that properly supports them, it'll look like this:

    enter image description here

    I'm not aware of any way to turn them off in Artisan, so your likely options are a) put up with it or b) use a better shell. Cygwin might be an option.