@jawis/stdio-filter
Version:
Filter the stdio from console applications.
12 lines (11 loc) • 390 B
TypeScript
type ParseEventCallbacks = {
onPrint: (str: string) => void;
onAction: (action: "up" | "down" | "right" | "left" | "up-beginning" | "down-beginning", count: number) => void;
onAction2: (action: "erase-to-beginning") => void;
setPosition: (x: number, y?: number) => void;
};
/**
*
*/
export declare const makeAnsiParser: (callbacks: ParseEventCallbacks) => any;
export {};