Files
xterm.js/addons/xterm-addon-attach
Svante Boberg 14b02b9ad5 Bump minimum target to es2015
Now that we no longer support IE we can raise the minimum ES target a
bit. Changing to es2015 shaves off ~17% from the main bundle size, also
it prevents generators from being transpiled into regular functions etc.
so I would guess it has the potential to give some general performance
improvements too.

For fun I also tried to raise it to es2022, this gave a slightly bigger
bundle than es2015 so I think es2015 could be an ok target unless we
need something newer for some reason.
2022-08-01 10:17:10 +02:00
..
2022-08-01 10:17:10 +02:00
2022-08-01 10:17:10 +02:00
2022-07-27 06:49:35 -07:00
2019-06-04 11:07:11 -07:00
2019-06-04 11:07:11 -07:00
2022-01-30 05:47:58 -08:00
2019-09-24 17:46:12 +03:00
2019-06-10 14:28:07 -07:00

xterm-addon-attach

An addon for xterm.js that enables attaching to a web socket. This addon requires xterm.js v4+.

Install

npm install --save xterm-addon-attach

Usage

import { Terminal } from 'xterm';
import { AttachAddon } from 'xterm-addon-attach';

const terminal = new Terminal();
const attachAddon = new AttachAddon(webSocket);
terminal.loadAddon(attachAddon);

See the full API for more advanced usage.