+3
-1
@@ -27,7 +27,9 @@ function setTerminalSize () {
|
|||||||
colsElement.addEventListener('change', setTerminalSize);
|
colsElement.addEventListener('change', setTerminalSize);
|
||||||
rowsElement.addEventListener('change', setTerminalSize);
|
rowsElement.addEventListener('change', setTerminalSize);
|
||||||
|
|
||||||
optionElements.cursorBlink.addEventListener('change', createTerminal);
|
optionElements.cursorBlink.addEventListener('change', function () {
|
||||||
|
term.setOption('cursorBlink', optionElements.cursorBlink.checked);
|
||||||
|
});
|
||||||
|
|
||||||
createTerminal();
|
createTerminal();
|
||||||
|
|
||||||
|
|||||||
@@ -407,6 +407,9 @@ Terminal.prototype.setOption = function(key, value) {
|
|||||||
}
|
}
|
||||||
this[key] = value;
|
this[key] = value;
|
||||||
this.options[key] = value;
|
this.options[key] = value;
|
||||||
|
switch (key) {
|
||||||
|
case 'cursorBlink': this.refresh(this.y, this.y); break;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user