Merge pull request #1490 from nikonso/fix-demo-string-options
Fix Demo String Options
This commit is contained in:
+8
-1
@@ -218,7 +218,7 @@ function initOptions(term) {
|
|||||||
term.setOption(o, input.checked);
|
term.setOption(o, input.checked);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
numberOptions.concat(Object.keys(stringOptions)).forEach(o => {
|
numberOptions.forEach(o => {
|
||||||
var input = document.getElementById(`opt-${o}`);
|
var input = document.getElementById(`opt-${o}`);
|
||||||
input.addEventListener('change', () => {
|
input.addEventListener('change', () => {
|
||||||
console.log('change', o, input.value);
|
console.log('change', o, input.value);
|
||||||
@@ -229,6 +229,13 @@ function initOptions(term) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Object.keys(stringOptions).forEach(o => {
|
||||||
|
var input = document.getElementById(`opt-${o}`);
|
||||||
|
input.addEventListener('change', () => {
|
||||||
|
console.log('change', o, input.value);
|
||||||
|
term.setOption(o, input.value);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTerminalSize() {
|
function updateTerminalSize() {
|
||||||
|
|||||||
Reference in New Issue
Block a user