mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-26 13:44:24 +00:00
25 lines
680 B
TypeScript
25 lines
680 B
TypeScript
|
import * as bare from "hterm";
|
||
|
export declare class TermHterm {
|
||
|
elem: HTMLElement;
|
||
|
term: bare.Terminal;
|
||
|
io: bare.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;
|
||
|
}
|