Files
xterm.js/addons/xterm-addon-attach
2022-12-19 09:56:20 -08:00
..
2022-08-01 10:17:10 +02:00
2022-07-27 06:49:35 -07:00
…
2022-12-19 09:56:20 -08: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.