title: is there a winapi call that can set colors in a console like 'color xx' command?
body: <p>I know I can do <code>system("color 1E")</code> for example, but I am curious if there is an api call that can do just that, since these are faster and I need to color all console just like <code>color</code> does. Only api call I know is <code>SetConsoleTextAttribute()</code> but this is coloring only the text that is written after it is used.</p>