<?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[Hilfe !!! system(&amp;quot;cls&amp;quot;);]]></title><description><![CDATA[<p>Hallo Leute !<br />
Habe ein Consolenspiel geschrieben die ein Laberynt aus einer Datei ladet.<br />
Mann kann mit 'w','a','d' und 's' ein symbol dürch Laberynt bewegen. Mein Problemm ist das mit system(&quot;cls&quot;) es alles rückelt. Gibt es möglichkeiten consolenbild löschen mit boost oder per std:: ???<br />
Danke .</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/294021/hilfe-system-quot-cls-quot</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 02:01:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/294021.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Oct 2011 09:07:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 09:07:04 GMT]]></title><description><![CDATA[<p>Hallo Leute !<br />
Habe ein Consolenspiel geschrieben die ein Laberynt aus einer Datei ladet.<br />
Mann kann mit 'w','a','d' und 's' ein symbol dürch Laberynt bewegen. Mein Problemm ist das mit system(&quot;cls&quot;) es alles rückelt. Gibt es möglichkeiten consolenbild löschen mit boost oder per std:: ???<br />
Danke .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131980</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131980</guid><dc:creator><![CDATA[runix81]]></dc:creator><pubDate>Sun, 16 Oct 2011 09:07:04 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 09:14:34 GMT]]></title><description><![CDATA[<p>runix81 schrieb:</p>
<blockquote>
<p>Laberynt</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2131983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131983</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 16 Oct 2011 09:14:34 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 09:16:33 GMT]]></title><description><![CDATA[<p>runix81 schrieb:</p>
<blockquote>
<p>Gibt es möglichkeiten consolenbild löschen mit boost oder per std:: ???</p>
</blockquote>
<p>No. Vielleicht ist <a href="http://www.c-plusplus.net/code/ic/" rel="nofollow">http://www.c-plusplus.net/code/ic/</a> was für Dich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2131984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2131984</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 16 Oct 2011 09:16:33 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 10:09:51 GMT]]></title><description><![CDATA[<p>Du kannst auch dutzende newlines reinhauen.</p>
<p>Oder das std::system <sub>ifdef</sub>en. Für Linux/BSD/Mac ist es std::system(&quot;clear&quot;) und für Windows ein std::system(&quot;cls&quot;).<br />
Für andere Plattformen muss du dir was spezielles raussuchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132003</guid><dc:creator><![CDATA[Mentras]]></dc:creator><pubDate>Sun, 16 Oct 2011 10:09:51 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 10:19:45 GMT]]></title><description><![CDATA[<p>Mentras schrieb:</p>
<blockquote>
<p>Du kannst auch dutzende newlines reinhauen.<br />
Oder das std::system <sub>ifdef</sub>en. Für Linux/BSD/Mac ist es std::system(&quot;clear&quot;) und für Windows ein std::system(&quot;cls&quot;).<br />
Für andere Plattformen muss du dir was spezielles raussuchen.</p>
</blockquote>
<p>Er benutzt doch schon system(&quot;cls&quot;). Und das Problem ist, daß das Laberynt so ruckelt, was ich mal als Flackern interpretiert habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132007</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 16 Oct 2011 10:19:45 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 10:25:41 GMT]]></title><description><![CDATA[<p>Stimmt, habe nicht genau aufgepasst. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132009</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132009</guid><dc:creator><![CDATA[Mentras]]></dc:creator><pubDate>Sun, 16 Oct 2011 10:25:41 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 10:45:22 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>Und das Problem ist, daß das Laberynt so ruckelt</p>
</blockquote>
<p>Nein, es rückelt. Du musst schon richtig lesen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132015</guid><dc:creator><![CDATA[gorreggt]]></dc:creator><pubDate>Sun, 16 Oct 2011 10:45:22 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 11:06:36 GMT]]></title><description><![CDATA[<p>Unter windows könntest du mit der winapi den konsolencursor wieder an den anfang setzen und alles überschreiben, das ist zwar auch nicht perfekt sollte aber schon besser aussehen. geht bestimmt auch unter unix, aber da hab ich leider keine ahnung von <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132021</guid><dc:creator><![CDATA[overrider!]]></dc:creator><pubDate>Sun, 16 Oct 2011 11:06:36 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 11:36:42 GMT]]></title><description><![CDATA[<p>Was du suchst ist vielleicht Double Buffering, damit ist flimmern (imo Fachwort) afaik ausgeschlossen.<br />
Für 'ne Dos-Konsole gibts das afaik garnicht. Bisher ist fast jeder, der genau das versuchen wollte, kläglich gescheitert. Du musst dir schon was anderes holen.<br />
Und volkard, gehört das nicht in ein anderes Forum ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132028</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132028</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 16 Oct 2011 11:36:42 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 11:55:43 GMT]]></title><description><![CDATA[<p>Klar kann man auch auf der Konsole doppelpuffern - du schreibst halt was auch immer du ausgeben willst nicht direkt auf die Konsole, sondern erst in einen Puffer, den du ausgibst, sobald er fertig ist. Es kann aber der beste Puffer Flackern nicht verhindern, wenn man, bevor man ihn zeichnet, den Bildschirm übermalt. Page-Flipping wird in der Konsole nicht funktionieren, ist aber mit einiger Wahrscheinlichkeit auch nicht notwendig.</p>
<p>Ohne das jetzt getestet zu haben (grad kein Windows zur Hand): Du suchst wahrscheinlich nach <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms686025%28v=vs.85%29.aspx" rel="nofollow">SetConsoleCursorPosition</a>. Das liest sich dann wie folgt:</p>
<pre><code class="language-cpp">COORD top_left = { 0, 0 };
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), top_left);
</code></pre>
<p>...um wieder nach links oben zu gehen. Wenn du das statt system(&quot;cls&quot;) benutzt, dürfte das Problem verschwinden. Damit das funktioniert, muss &lt;windows.h&gt; eingebunden werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132034</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Sun, 16 Oct 2011 11:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 13:58:03 GMT]]></title><description><![CDATA[<p>seldon schrieb:</p>
<blockquote>
<p><strong>Klar kann man auch auf der Konsole doppelpuffern</strong> - du schreibst halt was auch immer du ausgeben willst nicht direkt auf die Konsole, sondern erst in einen Puffer, den du ausgibst, sobald er fertig ist. <strong>Es kann aber der beste Puffer Flackern nicht verhindern</strong>, wenn man, bevor man ihn zeichnet, den Bildschirm übermalt.</p>
</blockquote>
<p>Ich muss mich anders ausdrücken:<br />
Ich meinte nicht double buffering, sondern das Flimmern.<br />
Das wirst du in einer Konsole nicht unterdrücken können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132077</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 16 Oct 2011 13:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 15:00:02 GMT]]></title><description><![CDATA[<p>Aber selbstverständlich kann man das. Ich erinnere mich noch, wie wir zu DOS-Zeiten über LANtastic Konsolenspiele gezockt haben, die kein bisschen flimmerten.</p>
<p>Du darfst halt nur die Konsole zwischendurch nicht dazu zwingen, sich selbst zu löschen, bevor du das Labyrinth neu malst. Das Flackern kommt ja dadurch zustande, dass die Zeichen des Labyrinths erst durch ein Leerzeichen und dann wieder durch das selbe Zeichen übermalt werden. Wenn du den Zwischenschritt rauslässt und das Labyrinth-Zeichen mit einem identischen Zeichen übermalst, tritt kein Flacker-Effekt auf. Das ist auch die Idee hinter Double-Buffering: du malst erst das gesamte Labyrinth in einen Buffer, gehst dann <em>ohne die Ausgabe zu löschen</em> nach links oben und dumpst ihn auf einen Rutsch raus. Die einzigen Zeichen, die sich ändern, sind dann die, die im neuen Frame anders sind, und da ist das ja gewollt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132108</guid><dc:creator><![CDATA[seldon]]></dc:creator><pubDate>Sun, 16 Oct 2011 15:00:02 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe !!! system(&amp;quot;cls&amp;quot;); on Sun, 16 Oct 2011 15:24:00 GMT]]></title><description><![CDATA[<p>Hmm...Interessant. Wusst ich nicht, werds demnächst mal ausprobieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2132117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2132117</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 16 Oct 2011 15:24:00 GMT</pubDate></item></channel></rss>