<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Nach SetConsoleTextAttribute() Standartfarben wieder einstellen?]]></title><description><![CDATA[<p>Mein Code sieht soweit so aus:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;
#include &lt;windows.h&gt;
using namespace std;
int main()
{
SetConsoleTitle(&quot;Hallo - Test&quot;);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_INTENSITY);
cout&lt;&lt;&quot;Hallo\n&quot;;
//SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),-1);
system(&quot;pause&quot;);
return 0;
}
</code></pre>
<p>Nun möchte ich den ausgegebenen Text des &quot;system(&quot;PAUSE&quot;)&quot; jedoch wieder in den Standardfarben der Konsole anzeigen lassen.<br />
Ich hoffe ihr könnt mir helfen.<br />
Ich habe im msdn nachgeschaut aber nicht wirklich was für mich gefunden (<a href="http://msdn2.microsoft.com/en-us/library/ms686047.aspx" rel="nofollow">Link</a>)</p>
<p>Danke schonmal fürs Lesen!</p>
<p>mfg</p>
<p>[edit 1:]<br />
Solte es eher in Konsolenforum gehören bitte verschieben</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196205/nach-setconsoletextattribute-standartfarben-wieder-einstellen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 26 Jun 2026 22:16:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196205.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Oct 2007 17:08:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nach SetConsoleTextAttribute() Standartfarben wieder einstellen? on Sat, 27 Oct 2007 13:06:27 GMT]]></title><description><![CDATA[<p>Mein Code sieht soweit so aus:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;
#include &lt;windows.h&gt;
using namespace std;
int main()
{
SetConsoleTitle(&quot;Hallo - Test&quot;);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED|FOREGROUND_INTENSITY);
cout&lt;&lt;&quot;Hallo\n&quot;;
//SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),-1);
system(&quot;pause&quot;);
return 0;
}
</code></pre>
<p>Nun möchte ich den ausgegebenen Text des &quot;system(&quot;PAUSE&quot;)&quot; jedoch wieder in den Standardfarben der Konsole anzeigen lassen.<br />
Ich hoffe ihr könnt mir helfen.<br />
Ich habe im msdn nachgeschaut aber nicht wirklich was für mich gefunden (<a href="http://msdn2.microsoft.com/en-us/library/ms686047.aspx" rel="nofollow">Link</a>)</p>
<p>Danke schonmal fürs Lesen!</p>
<p>mfg</p>
<p>[edit 1:]<br />
Solte es eher in Konsolenforum gehören bitte verschieben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392679</guid><dc:creator><![CDATA[Thunaer]]></dc:creator><pubDate>Sat, 27 Oct 2007 13:06:27 GMT</pubDate></item><item><title><![CDATA[Reply to Nach SetConsoleTextAttribute() Standartfarben wieder einstellen? on Sat, 27 Oct 2007 08:31:04 GMT]]></title><description><![CDATA[<p>Hier ein Beispiel, wie's geht: <a href="http://support.microsoft.com/kb/816179/de" rel="nofollow">http://support.microsoft.com/kb/816179/de</a></p>
<blockquote>
<p>Standartfarben</p>
</blockquote>
<p>Standar<strong>d</strong>farben - beachte das <strong>D</strong> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392863</guid><dc:creator><![CDATA[schmidt-webdesign.net]]></dc:creator><pubDate>Sat, 27 Oct 2007 08:31:04 GMT</pubDate></item><item><title><![CDATA[Reply to Nach SetConsoleTextAttribute() Standartfarben wieder einstellen? on Sat, 27 Oct 2007 13:12:38 GMT]]></title><description><![CDATA[<p>Danke dir!<br />
Und entschuldige meinen kleinen Patzer in der Rechtschreibung.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393028</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393028</guid><dc:creator><![CDATA[Thunaer]]></dc:creator><pubDate>Sat, 27 Oct 2007 13:12:38 GMT</pubDate></item></channel></rss>