Add WebGL and links addons for xterm.js

This commit is contained in:
Søren L. Hansen
2021-04-22 12:44:06 -07:00
parent 8d7358b3b3
commit 0dfc5aed76
9 changed files with 47 additions and 14 deletions

View File

@@ -53,7 +53,9 @@ export class Hterm {
setPreferences(value: object) {
Object.keys(value).forEach((key) => {
this.term.getPrefs().set(key, value[key]);
if (key != "EnableWebGL") {
this.term.getPrefs().set(key, value[key]);
}
});
};
@@ -75,9 +77,9 @@ export class Hterm {
};
deactivate(): void {
this.io.onVTKeystroke = function(){};
this.io.sendString = function(){};
this.io.onTerminalResize = function(){};
this.io.onVTKeystroke = function () { };
this.io.sendString = function () { };
this.io.onTerminalResize = function () { };
this.term.uninstallKeyboard();
}