123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- declare module 'term.js' {
-
- export
- interface ITerminalConfig {
- colors?: string[];
- convertEol?: boolean;
- termName?: string;
- rows?: number;
- cols?: number;
- cursorBlink?: boolean;
- visualBell?: boolean;
- popOnBell?: boolean;
- scrollback?: number;
- screenKeys?: boolean;
- useStyle?: boolean;
- useEvents?: boolean;
- useFocus?: boolean;
- useMouse?: boolean;
- }
-
- export
- class Terminal {
- static brokenBold: boolean;
- constructor(config: ITerminalConfig);
- options: ITerminalConfig;
- element: HTMLElement;
- colors: string[];
- rows: number;
- cols: number;
- visualBell: boolean;
- popOnBell: boolean;
- scrollback: number;
- on(event: string, callback: (arg: any) => void): void;
- open(el: HTMLElement): void;
- write(msg: string): void;
- resize(width: number, height: number): void;
- destroy(): void;
- }
- }
|