Keep cursor blink interval after a reset

Fixes #638
This commit is contained in:
Daniel Imms
2017-04-19 11:22:18 -07:00
parent 2674258ead
commit 5cafcdb695
+2
View File
@@ -2193,8 +2193,10 @@ Terminal.prototype.reset = function() {
this.options.rows = this.rows;
this.options.cols = this.cols;
var customKeydownHandler = this.customKeydownHandler;
var cursorBlinkInterval = this.cursorBlinkInterval;
Terminal.call(this, this.options);
this.customKeydownHandler = customKeydownHandler;
this.cursorBlinkInterval = cursorBlinkInterval;
this.refresh(0, this.rows - 1);
this.viewport.syncScrollArea();
};