ObservedTerminal
interfaceA borrowed terminal that can be observed but not controlled. Everything here is projected from the agent host's `TerminalState` and `terminal/*` actions; nothing is scraped from a window.
Import
import { ObservedTerminal } from '@modular/sdk';Members7
- commands
ReadonlySignal<readonly TerminalCommandRecord[]>Every command the host has detected, in order. Populated once output is being read through data, onCommand, or content.
- exit
ReadonlySignal<TerminalExitState>Whether the shell behind the terminal is still running; host truth.
- id
TerminalId- state
ReadonlySignal<TerminalReferenceState>- content()
() => Promise<TerminalContent | TerminalError>The host's bounded scrollback and command parts. Requires `read-terminal-output`.
- data()
(listener: (chunk: string) => void) => DisposableRaw output chunks as the host emits them. Requires `read-terminal-output`.
- onCommand()
(listener: (event: TerminalOutputEvent) => void) => DisposableA command started or finished on the host. Requires `read-terminal-output`.