To provide a better user experience, output written to the console before should be replaced rather than just appended. May be could implemented by using http://jline.sourceforge.net/