Skip to content

Commit eab1486

Browse files
committed
Cursor is not blinking anymore since v31.3
#1577
1 parent 5770b1a commit eab1486

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ssh/assets/xterm-webssh.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const TerminalHelper = {
309309
if (TerminalHelper.cursorBlinkInterval) {
310310
clearInterval(TerminalHelper.cursorBlinkInterval);
311311
}
312-
TerminalHelper.cursorBlinkInterval = setInterval(function () {
312+
const applyBlink = function () {
313313
terminal._core.optionsService.options.cursorBlink = enable;
314314

315315
// #974 : Upgrade xterm.js to 5.3.0 ->
@@ -328,7 +328,9 @@ const TerminalHelper = {
328328
if (terminal.textarea) {
329329
TerminalHelper.focus(enable);
330330
}
331-
}, 1500);
331+
};
332+
applyBlink();
333+
TerminalHelper.cursorBlinkInterval = setInterval(applyBlink, 1500);
332334
},
333335

334336
scrollToBottom: function () {

0 commit comments

Comments
 (0)