Merge pull request #2050 from Tyriar/2048_demo_line_height

Update terminal dimensions after line height changes
This commit is contained in:
Daniel Imms
2019-05-09 09:59:49 -07:00
committed by GitHub
+4 -1
View File
@@ -259,8 +259,11 @@ function initOptions(term: TerminalType): void {
console.log('change', o, input.value);
if (o === 'cols' || o === 'rows') {
updateTerminalSize();
} else if (o === 'lineHeight') {
term.setOption(o, parseFloat(input.value));
updateTerminalSize();
} else {
term.setOption(o, o === 'lineHeight' ? parseFloat(input.value) : parseInt(input.value, 10));
term.setOption(o, parseInt(input.value));
}
});
});