mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
12 lines
572 B
TypeScript
12 lines
572 B
TypeScript
// Why: the zero-dimensions diagnostic is emitted by the renderer's PTY connect
|
||
// path and later cleared once a hidden pane becomes visible and refits. Keeping
|
||
// the message text and its matcher together lets both sites stay in sync.
|
||
|
||
export function createTerminalZeroDimensionsMessage(cols: number, rows: number): string {
|
||
return `Terminal has zero dimensions (${cols}×${rows}). The pane container may not be visible.`
|
||
}
|
||
|
||
export function isTerminalZeroDimensionsDiagnostic(message: string): boolean {
|
||
return message.startsWith('Terminal has zero dimensions (')
|
||
}
|