title: How to erase characters printed in console
body: <p>I've been searching how to do it in other languages and I've found that I have to use the special character \b to remove the last character. (<a href="https://stackoverflow.com/questions/430713/how-do-i-erase-printed-characters-in-a-console-applicationlinux">how-do-i-erase-printed-characters-in-a-console-applicationlinux</a>)</p>
  
  <p>This doesn't work for node.js in multiple calls to console.log ();</p>
  
  <p>If I write a single log:</p>
  
  <pre><code>console.log ("abc\bd");
  </code></pre>
  
  <p>I get the result: abd</p>
  
  <p>But if I write:</p>
  
  <pre><code>console.log ("abc");
  console.log ("\bd");
  </code></pre>
  
  <p>I get the result:</p>
  
  <p>abc<br>
  d</p>
  
  <p>My goal is to print a waiting message like:</p>
  
  <p>Waiting<br>
  Waiting.<br>
  Waiting..<br>
  Waiting...</p>
  
  <p>and again:</p>
  
  <p>Waiting<br>
  Waiting.<br>
  etc</p>
  
  <p>all in the same line.</p>