Skip to content

Interface: ScrollbackApi

@termwright/driver


@termwright/driver / ScrollbackApi

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

@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 length: number

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


readonly retainedFloor: number

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

move(opts): void

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

number

void


position(): number

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

number


search(text): readonly object[]

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

string | RegExp

readonly object[]


text(opts?): string

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

number

number

string