title: How to read last line in a terminal console?
body: <p>How to read printed last line in a console?</p>
  
  <p>I am printing a line using</p>
  
  <pre><code>process.stdout.write("Hello World");
  </code></pre>
  
  <p>How to check printed last line? Example, if my last line has word "World", then I want to print "World is Beautiful" in next line.</p>