mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-14 01:14:25 +00:00
27 lines
763 B
TypeScript
27 lines
763 B
TypeScript
import * as bare from "xterm";
|
|
import { lib } from "libapps";
|
|
export declare class Xterm {
|
|
elem: HTMLElement;
|
|
term: bare;
|
|
resizeListener: () => void;
|
|
decoder: lib.UTF8Decoder;
|
|
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;
|
|
}
|