What is the simplest way to enable ANSI escape codes (eg. colored output) in Windows cmd?


CMD does not support ANSI escape sequences. You'll have to use COMMAND.COM. What is it that you're trying to do?

How to Enable ANSI.SYS in a Command Window (for COMMAND.COM)

How to Use ANSI.SYS in Windows NT (for COMMAND.COM)


You can get less for Windows and use:

less -R filename
  • I'm trying to view Rails log files that use ANSI codes for colored output – Jakub Arnold Jan 25 '10 at 15:29

You might try Cygwin's bash. Terminal colorization is something that Just Works under Cygwin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.