From f54ae16ce4f68adc2459eafc6f9aa3b19ab320eb Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 22 Aug 2017 20:54:04 -0600 Subject: [PATCH] Fix > termHeight issue in parser --- core/ansi_escape_parser.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/ansi_escape_parser.js b/core/ansi_escape_parser.js index 4552d399..301a4bc2 100644 --- a/core/ansi_escape_parser.js +++ b/core/ansi_escape_parser.js @@ -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() {