Tip: Viewing ANSI color codes in Windows console programs

Not sure if this belongs here, but this was something that bugged me since the first time I used Capistrano on Windows.

By default, Windows console programs (CMD, Console2) don’t process ANSI color codes so the console window gets flooded with them while running Capistrano.

Ansicon fixes this problem.

And, here is a tutorial for having it start by default when using Console2:
http://linge-ma.ws/better-cmd-exe-terminal-and-ansi-color-codes-support/

1 Like

Awesome, thanks for sharing this

1 Like

This indeed is cool for Windows developers, adding to this you should also make sure the font you are using supports ‘Box Drawing characters’ https://en.wikipedia.org/wiki/Box-drawing_character#Unicode

I use Adobe’s ‘Source Code Pro’, not sure what support are in the default fonts or default fonts in Windows.

grunt-contrib-cssmin@0.8.0 node_modules\grunt-contrib-cssmin
├── chalk@0.4.0 (has-color@0.1.4, ansi-styles@1.0.0, strip-ansi@0.1.1)
├── grunt-lib-contrib@0.6.1 (zlib-browserify@0.0.1)
└── clean-css@2.1.7 (commander@2.1.0)