bolt.diy/app/types/terminal.ts
2024-11-08 21:47:31 +05:30

10 lines
219 B
TypeScript

export interface ITerminal {
readonly cols?: number;
readonly rows?: number;
reset: () => void;
write: (data: string) => void;
onData: (cb: (data: string) => void) => void;
input: (data: string) => void;
}