3

Does the Windows console supporsts ANSI control characters?

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105

2 Answers2

2

It doesn't support many ANSI control characters by default (which is also mentioned in the wikipedia article http://en.wikipedia.org/wiki/ANSI_escape_code), but there are ways to make that possible.

Look into the answers to this question: How to load ANSI escape codes or get coloured file listing in WinXP cmd shell? You might happen upon something useful.

Community
  • 1
  • 1
irrenhaus3
  • 126
  • 1
  • 4
0

I assume you're referring to ASCII control characters.

The answer is "some". You can read backspace keypresses, for example, and you can pipe-in things like the ASCII "Bell" character.

However if you mean that the Windows console automatically resolves escaped characters, such as converting "\b" into "Bell", then no, you have to do that yourself.

Note that I speak about entering keypresses directly into the console and not batch files, for that see @ProblemFactory's answer.

Dai
  • 141,631
  • 28
  • 261
  • 374