2017-08-22 06:56:56 +00:00
|
|
|
import * as bare from "libapps";
|
2017-08-22 06:59:24 +00:00
|
|
|
export declare class Hterm {
|
2017-05-21 23:16:24 +00:00
|
|
|
elem: HTMLElement;
|
2017-08-22 07:16:28 +00:00
|
|
|
term: bare.hterm.Terminal;
|
|
|
|
io: bare.hterm.IO;
|
2017-05-21 23:16:24 +00:00
|
|
|
columns: number;
|
|
|
|
rows: number;
|
|
|
|
message: string;
|
|
|
|
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;
|
|
|
|
}
|