mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix Demo String Options
This commit is contained in:
+8
-1
@@ -218,7 +218,7 @@ function initOptions(term) {
|
||||
term.setOption(o, input.checked);
|
||||
});
|
||||
});
|
||||
numberOptions.concat(Object.keys(stringOptions)).forEach(o => {
|
||||
numberOptions.forEach(o => {
|
||||
var input = document.getElementById(`opt-${o}`);
|
||||
input.addEventListener('change', () => {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user