Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

345 B
Raw Blame
/** Wait for in-flight PTY bytes before deciding the screen is empty. */
export const PTY_PROMPT_NUDGE_DELAY_MS = 120

export function xtermBufferLooksEmpty(
  getLine: (row: number) => string | undefined,
  rows: number,
): boolean {
  for (let i = 0; i < rows; i++) {
    if ((getLine(i) ?? '').trim() !== '') return false
  }
  return true
}