mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
8803721f3d
* Move to TypeScript from legacy JavaScript * Add support of xterm.js * Hterm is still available for backward compatibility
25 lines
706 B
TypeScript
25 lines
706 B
TypeScript
import * as bare from "xterm";
|
|
export declare class TermXterm {
|
|
elem: HTMLElement;
|
|
message: HTMLElement;
|
|
messageTimeout: number;
|
|
messageTimer: number;
|
|
term: bare;
|
|
resizeListener: () => void;
|
|
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;
|
|
}
|