xterm-addon-clipboard
An addon for xterm.js that enables accessing the system clipboard. This addon requires xterm.js v4+.
Install
npm install --save xterm-addon-clipboard
Usage
import { Terminal } from 'xterm';
import { ClipboardAddon } from 'xterm-addon-clipboard';
const terminal = new Terminal();
const clipboardAddon = new ClipboardAddon();
terminal.loadAddon(clipboardAddon);
See the full API for more advanced usage.