mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
c66ae7b2e4
Launch an Xspice and run: echo -ne "\033]844;127.0.0.1;9876\007" This will launch a SPiCE client connecting to 127.0.0.1:9876. Still need to add all the security stuff and generally be more defensive in the implementation.
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
export declare namespace hterm {
|
|
export class Terminal {
|
|
io: IO;
|
|
onTerminalReady: () => void;
|
|
|
|
constructor();
|
|
getPrefs(): Prefs;
|
|
decorate(HTMLElement);
|
|
installKeyboard(): void;
|
|
uninstallKeyboard(): void;
|
|
setWindowTitle(title: string): void;
|
|
reset(): void;
|
|
softReset(): void;
|
|
}
|
|
|
|
export class IO {
|
|
writeUTF8: ((data: string) => void);
|
|
writeUTF16: ((data: string) => void);
|
|
onVTKeystroke: ((data: string) => void) | null;
|
|
sendString: ((data: string) => void) | null;
|
|
onTerminalResize: ((columns: number, rows: number) => void) | null;
|
|
|
|
push(): IO;
|
|
writeUTF(data: string);
|
|
showOverlay(message: string, timeout: number | null);
|
|
}
|
|
|
|
export class Prefs {
|
|
set(key: string, value: string): void;
|
|
}
|
|
|
|
export var defaultStorage: lib.Storage;
|
|
export var VT: any;
|
|
}
|
|
|
|
export declare namespace lib {
|
|
export interface Storage {
|
|
}
|
|
|
|
export interface Memory {
|
|
new (): Storage;
|
|
Memory(): Storage
|
|
}
|
|
|
|
export var Storage: {
|
|
Memory: Memory
|
|
}
|
|
|
|
export class UTF8Decoder {
|
|
decode(str: string)
|
|
}
|
|
}
|