5

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

Jakub Arnold
  • 1,674
  • 10
  • 25
  • 33

2 Answers2

5

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
Dennis Williamson
  • 60,515
  • 14
  • 113
  • 148
2

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

Gerald Combs
  • 6,331
  • 23
  • 35