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

link|improve this question

See my edited answer. – Dennis Williamson Jan 25 '10 at 16:18
feedback

2 Answers

up vote 2 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)

Edit:

You can get less for Windows and use:

less -R filename
link|improve this answer
I'm trying to view Rails log files that use ANSI codes for colored output – Darth Jan 25 '10 at 15:29
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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