Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
See my edited answer. – Dennis Williamson Jan 25 '10 at 16:18
up vote 4 down vote accepted

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
share|improve this answer
I'm trying to view Rails log files that use ANSI codes for colored output – Jakub Arnold Jan 25 '10 at 15:29
Thanks, downloaded to Win 7 x64, and it works good. – 244an Jan 22 at 9:37

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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