Skip to content

Commit

Permalink
Merge 4b1c54d into 2d0937a
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed May 9, 2019
2 parents 2d0937a + 4b1c54d commit 46cfc05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});
});
Expand Down

0 comments on commit 46cfc05

Please sign in to comment.