reset() should preserve existing geometry (rows/cols)
This commit is contained in:
@@ -2934,6 +2934,8 @@ Terminal.prototype.reverseIndex = function() {
|
|||||||
|
|
||||||
// ESC c Full Reset (RIS).
|
// ESC c Full Reset (RIS).
|
||||||
Terminal.prototype.reset = function() {
|
Terminal.prototype.reset = function() {
|
||||||
|
this.options.rows = this.rows;
|
||||||
|
this.options.cols = this.cols;
|
||||||
Terminal.call(this, this.options);
|
Terminal.call(this, this.options);
|
||||||
this.refresh(0, this.rows - 1);
|
this.refresh(0, this.rows - 1);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user