From 88c7b536a4ce71ea3213b58e38203fa980c0d2ee Mon Sep 17 00:00:00 2001 From: CHaBou Date: Tue, 16 Jan 2018 15:44:29 +0100 Subject: [PATCH] Fix initial cursor blinking (#2614) * Fix initial cursor blinking This is a workaround for https://github.com/xtermjs/xterm.js/issues/1194 Fixes #2596 * Add related issue comment --- lib/components/term.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/components/term.js b/lib/components/term.js index a349efc4..866d0161 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -75,6 +75,8 @@ export default class Term extends PureComponent { this.term = props.term || new Terminal(this.termOptions); this.term.attachCustomKeyEventHandler(this.keyboardHandler); this.term.open(this.termRef); + //This is a workaround for https://github.com/xtermjs/xterm.js/issues/1194 + this.term.setOption('cursorBlink', this.termOptions.cursorBlink); if (props.term) { //We need to set options again after reattaching an existing term Object.keys(this.termOptions).forEach(option => this.term.setOption(option, this.termOptions[option]));