0.14.0-beta.98.0 • Published 8 months ago

@daiyam/xterm-tab-addon-serialize v0.14.0-beta.98.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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 "@daiyam/xterm-tab";
import { SerializeAddon } from "@daiyam/xterm-tab-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/addon-serialize
$ yarn benchmark && yarn benchmark-baseline
$ # change some code in `@xterm/addon-serialize`
$ yarn benchmark-eval
0.14.0-beta.98.0

8 months ago

0.11.0-beta.2.0

2 years ago

0.11.0-beta.20.0

2 years ago

0.10.0-beta.2.0

2 years ago

0.9.0

3 years ago

0.7.0-beta.12.0

3 years ago

0.7.0-d.5

4 years ago

0.7.0-d.4

4 years ago

0.7.0-d.3

4 years ago

0.7.0-d.2

4 years ago

0.7.0-d.1

4 years ago

0.5.0-d.2

4 years ago

0.5.0-d.1

4 years ago