Skip to content

armgit / orca

Public Imported from GitHub
0

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.

667 B
Raw Blame
// Structural subset of xterm's buffer API so desktop xterm and the mobile document both fit.
export type TerminalLinkBufferCell = { getWidth?(): number; getChars?(): string }

export type TerminalLinkBufferLine = {
  readonly isWrapped: boolean
  readonly length: number
  getCell?(x: number): TerminalLinkBufferCell | undefined
  translateToString(
    trimRight: boolean,
    startColumn?: number,
    endColumn?: number,
    outColumns?: number[]
  ): string
}

export type TerminalLinkBuffer = { getLine(y: number): TerminalLinkBufferLine | undefined }

export type TerminalLinkBufferRange = {
  start: { x: number; y: number }
  end: { x: number; y: number }
}