SetConsoleMode() and ENABLE_VIRTUAL_TERMINAL_PROCESSING?
<p>According to MSDN, the <code>dwMode</code> parameter for the <code>SetConsoleMode()</code> function should allow <code>ENABLE_VIRTUAL_TERMINAL_PROCESSING</code> (0x04).</p>

<p>My Visual Studio (2013 Ultimate with Update 5) does not define that constant. It only has these two:</p>

<pre><code>#define ENABLE_PROCESSED_OUTPUT    0x0001
#define ENABLE_WRAP_AT_EOL_OUTPUT  0x0002
</code></pre>

<p>Was <code>ENABLE_VIRTUAL_TERMINAL_PROCESSING</code> removed?</p>

<p>I am trying to use it like this, so that I can control the cursor using the VT100 escape sequences.</p>

<pre><code>HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
DWORD dwMode = 0;
GetConsoleMode(hOut, &amp;dwMode);
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
SetConsoleMode(hOut, dwMode);
</code></pre>

<p>For reference, see this MSDN <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms686033(v=vs.85).aspx" rel="noreferrer">article</a>.</p>