Fix > termHeight issue in parser

This commit is contained in:
Bryan Ashby 2017-08-22 20:54:04 -06:00
parent cb9b66e9cd
commit f54ae16ce4
1 changed files with 2 additions and 6 deletions

View File

@ -44,14 +44,10 @@ function ANSIEscapeParser(options) {
self.row += rows;
self.column = Math.max(self.column, 1);
self.column = Math.min(self.column, self.termWidth);
self.row = Math.max(self.row, 1);
self.row = Math.min(self.row, self.termHeight);
// self.emit('move cursor', self.column, self.row);
self.column = Math.min(self.column, self.termWidth); // can't move past term width
self.row = Math.max(self.row, 1);
self.positionUpdated();
//self.rowUpdated();
};
self.saveCursorPosition = function() {