reset() should preserve existing geometry (rows/cols)

This commit is contained in:
Daniel Risacher
2013-12-12 13:19:12 -05:00
parent c877f54e7f
commit 6990257df6
+2
View File
@@ -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);
};