title: nodejs - how to keep an status at top of stdout
body: <p>I'm trying to output something like these:</p>
  
  <pre><code>counter is: 10            &lt;= fixed line and auto updating
  console.logs, etc...      &lt;= other console.logs, errors, defaul outputs
  console.logs, etc...
  console.logs, etc...
  console.logs, etc...
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>I have tried with process.stdout.write() but it is not working.</p>
  
  <pre><code>var counter = 0;
  setInterval(function(){
      counter++;
      process.stdout.write("counter is " + counter + " \r");
  }, 500);
  
  setInterval(function(){
      console.log('some output');
  }, 1500);
  </code></pre>