title: nodejs how to print console that sticks on top
body: <p>lets say i want to make</p>
  
  <p>sometime like linux or unix TOP using nodejs.</p>
  
  <p>example</p>
  
  <pre><code>EXMPLE APP
  
  ram usage : 30MB
  processor usage : 20%
  
  // above this line refreshed and but a fixed position
  ---------- LOGS ------------
  // below this line is refreshed and max last 5 console.logs
  
  example : server down at x
  example : server down at y
  example : server down at y
  example : server down at y
  example : server down at y
  </code></pre>
  
  <p>so the screen wont go down so</p>
  
  <pre><code>// missing ram usage and processor usage as the page go down
  example : server down at x
  example : server down at y
  example : server down at y
  example : server down at y
  example : server down at y
  example : server down at x
  example : server down at y
  example : server down at y
  example : server down at y
  example : server down at y
  </code></pre>
  
  <p>where do i start?, is there any good tools?</p>