Interface: LaunchTerminalOptions
@termwright/driver / LaunchTerminalOptions
Interface: LaunchTerminalOptions
Section titled “Interface: LaunchTerminalOptions”Defined in: driver/src/session.ts:211
Stable application-facing options accepted by launchTerminal.
Extends
Section titled “Extends”Properties
Section titled “Properties”artifactSecurity?
Section titled “artifactSecurity?”
readonlyoptionalartifactSecurity?:ArtifactSecurityPolicy
Defined in: driver/src/api.ts:135
One policy for every artifact boundary. Defaults to secure redacted.
Inherited from
Section titled “Inherited from”LaunchOptions.artifactSecurity
columns?
Section titled “columns?”
readonlyoptionalcolumns?:number
Defined in: driver/src/api.ts:113
Inherited from
Section titled “Inherited from”command
Section titled “command”
readonlycommand: readonlystring[]
Defined in: driver/src/api.ts:88
Inherited from
Section titled “Inherited from”
readonlyoptionalcwd?:string
Defined in: driver/src/api.ts:89
Inherited from
Section titled “Inherited from”debug?
Section titled “debug?”
readonlyoptionaldebug?:boolean
Defined in: driver/src/api.ts:97
Streams a live log of API calls, waits, revisions and diagnostics to
stderr. Also enabled by TERMWRIGHT_DEBUG=1 (=all adds raw PTY traffic).
Inherited from
Section titled “Inherited from”
readonlyoptionalenv?:Readonly<Record<string,string>>
Defined in: driver/src/api.ts:90
Inherited from
Section titled “Inherited from”envMode?
Section titled “envMode?”
readonlyoptionalenvMode?:EnvMode
Defined in: driver/src/api.ts:92
Defaults to 'replace': a test process’s secrets are not the child’s.
Inherited from
Section titled “Inherited from”
readonlyoptionallogs?: readonlyAppLogSource[]
Defined in: driver/src/api.ts:103
Log files to follow for the lifetime of the session. A file that does not exist yet is waited for; one that already exists is followed from its current end, so a session never replays a previous run.
Inherited from
Section titled “Inherited from”modesObservable?
Section titled “modesObservable?”
readonlyoptionalmodesObservable?:boolean
Defined in: driver/src/session.ts:217
Whether the child’s input-mode requests are observable. Defaults to true for every certified backend, including pinned passthrough ConPTY. Set false only for an embedding or synthetic backend that cannot expose DECSET.
operationBudget?
Section titled “operationBudget?”
readonlyoptionaloperationBudget?:OperationBudget
Defined in: driver/src/api.ts:132
Inherited from
Section titled “Inherited from”recording?
Section titled “recording?”
readonlyoptionalrecording?:RecordingOptions
Defined in: driver/src/api.ts:133
Inherited from
Section titled “Inherited from”requiredCapabilities?
Section titled “requiredCapabilities?”
readonlyoptionalrequiredCapabilities?: readonly ("semantic-tree"|"stable-identity"|"intended-geometry"|"clipped-geometry"|"painted-region"|"pointer-geometry"|"pointer-hit-testing"|"focus"|"scroll"|"render-order"|"action-strategies"|"keyboard-input"|"pointer-input"|"focus-input"|"paired-revisions")[]
Defined in: driver/src/api.ts:146
Capabilities that must be present in the frozen session contract.
Launch waits for negotiation and throws CapabilityUnavailableError
before returning a harness when any requirement is missing.
Inherited from
Section titled “Inherited from”LaunchOptions.requiredCapabilities
readonlyoptionalrows?:number
Defined in: driver/src/api.ts:114
Inherited from
Section titled “Inherited from”scrollbackLines?
Section titled “scrollbackLines?”
readonlyoptionalscrollbackLines?:number
Defined in: driver/src/api.ts:130
Inherited from
Section titled “Inherited from”semanticFrameQueueCapacity?
Section titled “semanticFrameQueueCapacity?”
readonlyoptionalsemanticFrameQueueCapacity?:number
Defined in: driver/src/api.ts:129
Negotiated ceiling for semantic frames in flight between a framework probe and the driver. Defaults to 32 and is capped at 256. Compatible probes may use it as their publication budget; a full queue still fails closed instead of dropping or retrying a semantic revision.
Inherited from
Section titled “Inherited from”LaunchOptions.semanticFrameQueueCapacity
semanticNegotiationMs?
Section titled “semanticNegotiationMs?”
readonlyoptionalsemanticNegotiationMs?:number
Defined in: driver/src/api.ts:122
Maximum time to discover an optional semantic adapter. Defaults to 2,000
ms for generic auto-detection. A peer accepted within that window keeps
its own bounded hello deadline; peers first seen afterwards are refused.
When requiredCapabilities is non-empty, the default discovery budget is
the larger of 2,000 ms and the session ready timeout.
Inherited from
Section titled “Inherited from”LaunchOptions.semanticNegotiationMs
shellIntegration?
Section titled “shellIntegration?”
readonlyoptionalshellIntegration?:"external"|"termwright-posix"|"termwright-powershell"
Defined in: driver/src/api.ts:140
Termwright-managed modes instrument an interactive shell with exact
command markers. Test authors should normally use terminal.openShell().
Inherited from
Section titled “Inherited from”LaunchOptions.shellIntegration
terminalProfile?
Section titled “terminalProfile?”
readonlyoptionalterminalProfile?:TerminalProfileId
Defined in: driver/src/api.ts:112
Terminal profile: which width tables and which of the switches terminals
disagree on this session uses. The built-in ids are 'default' and
'cjk-wide'.
It is recorded with the session so a replay, a screenshot and the runner pane can count characters exactly as the live session did.
Inherited from
Section titled “Inherited from”timeouts?
Section titled “timeouts?”
readonlyoptionaltimeouts?:TimeoutClasses
Defined in: driver/src/api.ts:131