2017-05-21 23:16:24 +00:00
|
|
|
import * as bare from "xterm";
|
2017-08-26 07:53:17 +00:00
|
|
|
import { lib } from "libapps";
|
2017-08-22 06:59:24 +00:00
|
|
|
export declare class Xterm {
|
2017-05-21 23:16:24 +00:00
|
|
|
elem: HTMLElement;
|
2017-08-26 07:53:17 +00:00
|
|
|
term: bare;
|
|
|
|
resizeListener: () => void;
|
|
|
|
decoder: lib.UTF8Decoder;
|
2017-05-21 23:16:24 +00:00
|
|
|
message: HTMLElement;
|
|
|
|
messageTimeout: number;
|
|
|
|
messageTimer: number;
|
|
|
|
constructor(elem: HTMLElement);
|
|
|
|
info(): {
|
|
|
|
columns: number;
|
|
|
|
rows: number;
|
|
|
|
};
|
|
|
|
output(data: string): void;
|
|
|
|
showMessage(message: string, timeout: number): void;
|
|
|
|
removeMessage(): void;
|
|
|
|
setWindowTitle(title: string): void;
|
|
|
|
setPreferences(value: object): void;
|
|
|
|
onInput(callback: (input: string) => void): void;
|
|
|
|
onResize(callback: (colmuns: number, rows: number) => void): void;
|
|
|
|
deactivate(): void;
|
|
|
|
reset(): void;
|
|
|
|
close(): void;
|
|
|
|
}
|