title: node.js stdout clearline() and cursorTo() functions
body: <p>From a node.js tutorial, I see those two process.stdout functions : </p>
  
  <pre><code>process.stdout.clearLine();
  process.stdout.cursorTo(0);
  </code></pre>
  
  <p>But I'm using a more recent node.js version (4.2.4), and those functions do not exist. I get <code>process.stdout.clearLine is not a function</code> and <code>process.stdout.cursorTo is not a function</code>.</p>
  
  <p>What is the equivalent of clearLine and cursorTo on node.js version 4.2.4 ?</p>
  
  <p>EDIT : </p>
  
  <p>Those are not working either : </p>
  
  <pre><code>process.readline.clearLine();
  process.readline.cursorTo(0);
  
  function writeWaitingPercent(p) {
      process.readline.clearLine();
      process.readline.cursorTo(0);
      process.stdout.write(`waiting ... ${p}%`);
  }
  </code></pre>
  
  <p>I get <code>Cannot read property 'clearLine' of undefined</code></p>