title: What does "\e" do? What does "\e[1;1H\e[2J" do?
body: <p>I was looking for some alternative to <code>system(&quot;cls&quot;)</code> that works on MacOS and I found this:</p>
  <pre class="lang-c prettyprint-override"><code>printf(&quot;\e[1;1H\e[2J&quot;);
  </code></pre>
  <p>However I do not know what this is doing.</p>
  <p><a href="https://www.geeksforgeeks.org/clear-console-c-language/" rel="nofollow noreferrer">Post where I found this</a></p>