diff --git a/demo/client.ts b/demo/client.ts index 8e03ec3c1b..c8fcfb79b2 100644 --- a/demo/client.ts +++ b/demo/client.ts @@ -406,7 +406,11 @@ function initOptions(term: TerminalType): void { const input = document.getElementById(`opt-${o}`); addDomListener(input, 'change', () => { console.log('change', o, input.value); - if (o === 'lineHeight') { + if (o === 'rows') { + term.resize(term.cols, parseInt(input.value)); + } else if (o === 'cols') { + term.resize(parseInt(input.value), term.rows); + } else if (o === 'lineHeight') { term.options.lineHeight = parseFloat(input.value); } else if (o === 'scrollSensitivity') { term.options.scrollSensitivity = parseFloat(input.value);