Node's readline.Interface#_refreshLine
unnecessarily clears entire screen down when printing user input. This is a patch to only clear lines that user input is printed on.
$ npm install https://github.com/slammayjammay/readline-refresh-line
/* your js file */
require('readline-refresh-line/hijack')