Merge pull request #13 from risacher/resize-reset

Fix chjj/tty.js#99, chjj/term.js#10; reset() should preserve existing geometry
This commit is contained in:
Christopher Jeffrey
2014-01-03 10:10:15 -08:00
+2
View File
@@ -2937,6 +2937,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);
};