]> git.proxmox.com Git - mirror_xterm.js.git/blame - src/Interfaces.ts
Use namespace and const for C0 constants
[mirror_xterm.js.git] / src / Interfaces.ts
CommitLineData
e0d98711 1/**
1d300911 2 * @license MIT
e0d98711
DI
3 */
4
824a9c6d
PK
5export interface IBrowser {
6 isNode: boolean;
7 userAgent: string;
8 platform: string;
9 isFirefox: boolean;
10 isMSIE: boolean;
11 isMac: boolean;
12 isIpad: boolean;
13 isIphone: boolean;
14 isMSWindows: boolean;
15}
16
e0d98711 17export interface ITerminal {
30fcdd6c 18 element: HTMLElement;
e0d98711 19 rowContainer: HTMLElement;
824a9c6d 20 textarea: HTMLTextAreaElement;
e0d98711
DI
21 ydisp: number;
22 lines: string[];
23 rows: number;
824a9c6d 24 browser: IBrowser;
e0d98711 25
30fcdd6c
DI
26 /**
27 * Emit the 'data' event and populate the given data.
28 * @param data The data to populate in the event.
29 */
30 handler(data: string);
e0d98711
DI
31 on(event: string, callback: () => void);
32 scrollDisp(disp: number, suppressScrollEvent: boolean);
824a9c6d 33 cancel(ev: Event, force?: boolean);
e0d98711 34}