title: Is there a way to erase the last line of output?
body: <p>A very simple program that prints 3 lines of output:</p>
  <pre><code>console.log('a');
  console.log('b');
  console.log('c');
  </code></pre>
  <p>Is there a way from program to delete the last line after it has been printed?, i.e.</p>
  <pre><code>console.log('a');
  console.log('b');
  console.log('c');
  clearLastLine();
  console.log('C');
  </code></pre>
  <p>which would produce:</p>
  <pre><code>a
  b
  C
  </code></pre>