title: C++ Win32 Console Color
body: <p>I know a bit how to do colors in Win32 C++ console. But it's not really efficient. For example:</p>
  
  <pre><code> SYSTEM("color 01")
  </code></pre>
  
  <p>Slows down a lot on your process. Also:</p>
  
  <pre><code> HANDLE h = GetStdHandle ( STD_OUTPUT_HANDLE );
   WORD wOldColorAttrs;
   CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
  
   /*
    * First save the current color information
    */
  
   GetConsoleScreenBufferInfo(h, &amp;csbiInfo);
   wOldColorAttrs = csbiInfo.wAttributes;
  
   /*
    * Set the new color information
    */
  
   SetConsoleTextAttribute ( h, FOREGROUND_RED );
  </code></pre>
  
  <p>Works great, but it doesn't have much colors. Also, <code>FOREGROUND_RED</code> is dark-red.</p>
  
  <p>So what I want to ask, isn't there a way like CLR property <code>Console::ForegroundColor</code> set, so you can use any color from the ConsoleColor enum?</p>