@bitblit/asyncglk
Version:
A Typescript Glk library
25 lines (24 loc) • 949 B
TypeScript
import * as GlkOte from '../common/glkote.js';
import * as protocol from '../../common/protocol.js';
export default class CheapGlkOte extends GlkOte.GlkOteBase implements GlkOte.GlkOte {
private current_input_type;
private handle_char_input_callback;
private handle_line_input_callback;
private rl;
private stdin;
private stdout;
private window;
constructor();
init(options: GlkOte.GlkOteOptions): Promise<void>;
private attach_handlers;
protected cancel_inputs(windows: protocol.InputUpdate[]): void;
private detach_handlers;
protected disable(disable: boolean): void;
protected exit(): void;
private handle_char_input;
private handle_line_input;
save_allstate(): any;
protected update_content(content: protocol.ContentUpdate[]): void;
protected update_inputs(windows: protocol.InputUpdate[]): void;
protected update_windows(windows: protocol.WindowUpdate[]): void;
}