mirror of
https://github.com/yudai/gotty.git
synced 2025-12-24 11:20:13 +01:00
parent
603c65063b
commit
f157dbe9d3
1 changed files with 4 additions and 0 deletions
|
|
@ -78,6 +78,10 @@ export class Xterm {
|
|||
Object.keys(value).forEach((key) => {
|
||||
if (key == "EnableWebGL" && key) {
|
||||
this.term.loadAddon(new WebglAddon());
|
||||
} else if (key == "font-size") {
|
||||
this.term.setOption("fontSize", value[key])
|
||||
} else if (key == "font-family") {
|
||||
this.term.setOption("fontFamily", value[key])
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue