Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.