返回 CodeWhale
terminal-capture-types.ts
根目录 / web / lib / terminal-capture-types.ts
1 export type TerminalCaptureStyle = {
2 fg: string;
3 bg: string;
4 bold?: boolean;
5 italic?: boolean;
6 dim?: boolean;
7 underline?: boolean;
8 strike?: boolean;
9 };
10
11 export type TerminalCaptureFrame = {
12 file: string;
13 state: string;
14 provenance: "released";
15 cols: number;
16 rows: number;
17 styles: TerminalCaptureStyle[];
18 /** Each row is a list of [text, style index] runs. */
19 lines: [string, number][][];
20 };
21
21 lines TYPESCRIPT