]> git.proxmox.com Git - pve-xtermjs.git/commit
download and use xterm-addon-webgl as renderer
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 26 Sep 2023 06:34:39 +0000 (08:34 +0200)
committerDominik Csapak <d.csapak@proxmox.com>
Tue, 26 Sep 2023 08:20:11 +0000 (10:20 +0200)
commit154b65d5b994029162027e5fb47c533ff6d2cc3a
tree97c3b8a3d556fb30fda39f18675ec9f5160c9113
parent1ad0d6aba6152492b2614ac3437df97338821a1f
download and use xterm-addon-webgl as renderer

since xterm.js 5.0.0, the previous default canvas renderer is not
built-in anymore and only recommended as a fallback. The new recommended
renderer is this webgl one, so use it with a fallback to the default
built-in dom renderer (which is slower, but still functional).

to use it we have to load the addon after `terminal.open` so move the
`open` call to before the addon loading. While we're touching that line,
remove the superfluous second 'true' parameter that did not do anything.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Makefile
src/www/index.html.hbs.in
src/www/index.html.tpl.in
src/www/main.js
src/www/xterm-addon-webgl.js [new file with mode: 0644]
src/www/xterm-addon-webgl.js.map [new file with mode: 0644]