xterm: add web link addon

This commit is contained in:
Will Owens 2025-10-28 19:51:34 -05:00
parent a36a5a5d1e
commit cd3de2cfa4
No known key found for this signature in database
GPG key ID: 8C8384B16B623DA6
6 changed files with 20 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

10
js/package-lock.json generated
View file

@ -6,6 +6,7 @@
"": {
"dependencies": {
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/addon-webgl": "^0.18.0",
"@xterm/xterm": "^5.5.0",
"libapps": "github:yudai/libapps#release-hterm-1.70"
@ -342,6 +343,15 @@
"@xterm/xterm": "^5.0.0"
}
},
"node_modules/@xterm/addon-web-links": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@xterm/addon-web-links/-/addon-web-links-0.11.0.tgz",
"integrity": "sha512-nIHQ38pQI+a5kXnRaTgwqSHnX7KE6+4SVoceompgHL26unAxdfP6IPqUTSYPQgSwM56hsElfoNrrW5V7BUED/Q==",
"license": "MIT",
"peerDependencies": {
"@xterm/xterm": "^5.0.0"
}
},
"node_modules/@xterm/addon-webgl": {
"version": "0.18.0",
"resolved": "https://registry.npmjs.org/@xterm/addon-webgl/-/addon-webgl-0.18.0.tgz",

View file

@ -8,9 +8,10 @@
"webpack-cli": "^6"
},
"dependencies": {
"@xterm/xterm": "^5.5.0",
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/addon-webgl": "^0.18.0",
"@xterm/xterm": "^5.5.0",
"libapps": "github:yudai/libapps#release-hterm-1.70"
}
}

View file

@ -3,6 +3,7 @@ import { lib } from "libapps";
import { IDisposable, Terminal } from "@xterm/xterm";
import { FitAddon } from "@xterm/addon-fit";
import { WebglAddon } from "@xterm/addon-webgl";
import { WebLinksAddon } from "@xterm/addon-web-links";
import { waitForElement } from "./waitFor";
@ -34,6 +35,7 @@ export class Xterm {
this.fitAddon = new FitAddon();
this.term.loadAddon(this.fitAddon);
this.term.loadAddon(new WebLinksAddon());
this.message = elem.ownerDocument.createElement("div");
this.message.className = "xterm-overlay";

File diff suppressed because one or more lines are too long