Skip to content

Interface: PointerOptions

@termwright/driver


@termwright/driver / PointerOptions

Defined in: driver/src/api.ts:762

@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.

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();

readonly optional button?: "left" | "middle" | "right"

Defined in: driver/src/api.ts:763


readonly optional modifiers?: readonly MouseModifier[]

Defined in: driver/src/api.ts:307

MouseModifierOptions.modifiers


readonly optional position?: object

Defined in: driver/src/api.ts:764

readonly columnOffset: number

readonly rowOffset: number


readonly optional timeout?: number

Defined in: driver/src/api.ts:561

WaitOptions.timeout