Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
/** Keep restored history in scrollback while a fresh shell starts on a blank viewport. */
export function buildFreshShellViewportBlankingSequence(rows: number): string {
const viewportRows = Math.max(1, Math.floor(Number.isFinite(rows) ? rows : 24))
// Newlines preserve scrollback unlike CSI S; reset stale TUI margins so scrolling reaches the full viewport.
return `\x1b[?6l\x1b[r\x1b[${viewportRows};1H${'\r\n'.repeat(viewportRows)}\x1b[H`
}