Interface: TerminalWindow
@termwright/driver / TerminalWindow
Interface: TerminalWindow
Section titled “Interface: TerminalWindow”Defined in: driver/src/api.ts:342
@termwright/driver — PTY + VT sessions, locators, actions and waits.
The normative public API lives in api.ts; this module is the only entry
point and re-exports the types from there together with their runtime
implementations.
Example
Section titled “Example”import { launchTerminal } from '@termwright/driver';
const terminal = await launchTerminal({ command: ['node', 'app.js'] });await terminal.waitForText('Ready');await terminal.getByRole('button', { name: 'Approve' }).activate();await terminal.close();Methods
Section titled “Methods”blur()
Section titled “blur()”blur():
Promise<void>
Defined in: driver/src/api.ts:346
Sends CSI focus-out under the same contract and runtime proof as TerminalWindow.focus.
Returns
Section titled “Returns”Promise<void>
focus()
Section titled “focus()”focus():
Promise<void>
Defined in: driver/src/api.ts:344
Sends CSI focus-in only when the frozen focus-input capability and current reporting mode are authoritative.
Returns
Section titled “Returns”Promise<void>