diff --git a/index.js b/index.js index c1201be..3c8eedf 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ -var MOVE_LEFT = new Buffer('1b5b3130303044', 'hex').toString(); var MOVE_UP = new Buffer('1b5b3141', 'hex').toString(); var CLEAR_LINE = new Buffer('1b5b304b', 'hex').toString(); var stringWidth = require('string-width'); @@ -23,9 +22,9 @@ module.exports = function(stream) { str = ''; var nextStr = Array.prototype.join.call(arguments, ' '); - // Clear screen + // Move to beginning of line and clear, then move up for each previous line for (var i=0; i