gotty/js/dist/hterm.d.ts

25 lines
690 B
TypeScript
Raw Normal View History

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