possibly fixed cursor blink interval overlaps (fixes #216)

This commit is contained in:
Eugene Pankov 2018-10-05 10:24:28 +01:00
parent f3f969a006
commit 1b1b2af545

View File

@ -57,9 +57,13 @@ hterm.hterm.Terminal.prototype.applyCursorShape = function () {
console.warn('Unknown cursor style: ' + modeNumber) console.warn('Unknown cursor style: ' + modeNumber)
return return
} }
this.setCursorShape(modes[modeNumber][0]) setTimeout(() => {
this.setCursorBlink(modes[modeNumber][1]) this.setCursorShape(modes[modeNumber][0])
this.setCursorVisible(true) this.setCursorBlink(modes[modeNumber][1])
})
setTimeout(() => {
this.setCursorVisible(true)
})
} }
hterm.hterm.VT.CSI[' q'] = function (parseState) { hterm.hterm.VT.CSI[' q'] = function (parseState) {