add SerializeAddon

This commit is contained in:
javacs3
2019-07-10 21:46:51 +08:00
parent 44a843bbe6
commit 2571a0654f
11 changed files with 289 additions and 1 deletions
@@ -0,0 +1,30 @@
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { Terminal, ITerminalAddon } from 'xterm';
declare module 'xterm-addon-serialize' {
/**
* An xterm.js addon that enables web links.
*/
export class SerializeAddon implements ITerminalAddon {
constructor();
/**
* Activates the addon
* @param terminal The terminal the addon is being loaded in.
*/
public activate(terminal: Terminal): void;
public serialize(rows?: number): string;
/**
* Disposes the addon.
*/
public dispose(): void;
}
}