From 5cafcdb695b0493144fcd23db94bd1b5dea59402 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 19 Apr 2017 11:22:18 -0700 Subject: [PATCH] Keep cursor blink interval after a reset Fixes #638 --- src/xterm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index 09c03322..777e65f9 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -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(); };