From 6990257df601ce06ade23dd3df9bcd4cbae1a189 Mon Sep 17 00:00:00 2001 From: Daniel Risacher Date: Thu, 12 Dec 2013 13:19:12 -0500 Subject: [PATCH] reset() should preserve existing geometry (rows/cols) --- src/term.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/term.js b/src/term.js index 3af1a07c..3d22bb57 100644 --- a/src/term.js +++ b/src/term.js @@ -2934,6 +2934,8 @@ Terminal.prototype.reverseIndex = function() { // ESC c Full Reset (RIS). Terminal.prototype.reset = function() { + this.options.rows = this.rows; + this.options.cols = this.cols; Terminal.call(this, this.options); this.refresh(0, this.rows - 1); };