0.11.0-beta.20.0 • Published 8 months ago
@daiyam/xterm-tab-addon-serialize v0.11.0-beta.20.0
xterm-addon-serialize
An addon for xterm.js that enables xterm.js to serialize a terminal framebuffer into string or html. This addon requires xterm.js v4+.
⚠️ This is an experimental addon that is still under construction ⚠️
Install
npm install --save xterm-addon-serialize
Usage
import { Terminal } from "xterm";
import { SerializeAddon } from "xterm-addon-serialize";
const terminal = new Terminal();
const serializeAddon = new SerializeAddon();
terminal.loadAddon(serializeAddon);
terminal.write("something...", () => {
console.log(serializeAddon.serialize());
});
See the full API for more advanced usage.
Benchmark
⚠️ Ensure you have lolcat
, hexdump
programs installed in your computer
$ git clone https://github.com/xtermjs/xterm.js.git
$ cd xterm.js
$ yarn
$ cd addons/xterm-addon-serialize
$ yarn benchmark && yarn benchmark-baseline
$ # change some code in `xterm-addon-serialize`
$ yarn benchmark-eval
0.11.0-beta.2.0
8 months ago
0.11.0-beta.20.0
8 months ago
0.10.0-beta.2.0
11 months ago
0.9.0
1 year ago
0.7.0-beta.12.0
2 years ago
0.7.0-d.5
2 years ago
0.7.0-d.4
2 years ago
0.7.0-d.3
2 years ago
0.7.0-d.2
2 years ago
0.7.0-d.1
3 years ago
0.5.0-d.2
3 years ago
0.5.0-d.1
3 years ago