Apply cursorBlink via setOption

Fixes #478
This commit is contained in:
Daniel Imms
2017-01-13 21:31:31 -08:00
parent fc528f6c0c
commit 7679475bfe
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ function setTerminalSize () {
colsElement.addEventListener('change', setTerminalSize);
rowsElement.addEventListener('change', setTerminalSize);
optionElements.cursorBlink.addEventListener('change', createTerminal);
optionElements.cursorBlink.addEventListener('change', function () {
term.setOption('cursorBlink', optionElements.cursorBlink.checked);
});
createTerminal();
+3
View File
@@ -407,6 +407,9 @@ Terminal.prototype.setOption = function(key, value) {
}
this[key] = value;
this.options[key] = value;
switch (key) {
case 'cursorBlink': this.refresh(this.y, this.y); break;
}
};
/**