How to change text or background color in a Windows console application <p>Which C++ function changes text or background color (MS Visual studio)? For example <code>cout&lt;&lt;"This text";</code> how to make "This text" red color.</p>