ControlledTerminal
interfaceA borrowed terminal with explicit input and presentation authority.
Import
import { ControlledTerminal } from '@modular/sdk';Members7
- id
string & $brand<'TerminalId'>- state
ReadonlySignal<TerminalReferenceState>- execute
(command: string, options?: TerminalOperationOptions) => Promise<TerminalError | TerminalCommandResult>Run one shell command and resolve from the host shell lifecycle.
- paste
(text: string, options?: { submit?: boolean }) => Promise<void | TerminalError>- reveal
(focus?: 'focus' | 'preserve-focus') => Promise<void | TerminalError>- submit
(text: string) => Promise<void | TerminalError>- write
(text: string) => Promise<void | TerminalError>