]> git.proxmox.com Git - mirror_xterm.js.git/blob - src/Interfaces.ts
Merge remote-tracking branch 'upstream/master' into 335_CompositionHelper_ts
[mirror_xterm.js.git] / src / Interfaces.ts
1 /**
2 * xterm.js: xterm, in the browser
3 * Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
4 */
5
6 export interface ITerminal {
7 element: HTMLElement;
8 rowContainer: HTMLElement;
9 ydisp: number;
10 lines: string[];
11 rows: number;
12
13 /**
14 * Emit the 'data' event and populate the given data.
15 * @param data The data to populate in the event.
16 */
17 handler(data: string);
18 on(event: string, callback: () => void);
19 scrollDisp(disp: number, suppressScrollEvent: boolean);
20 }