Interface: ScrollbackApi
@termwright/driver / ScrollbackApi
Interface: ScrollbackApi
Section titled “Interface: 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.
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();Properties
Section titled “Properties”length
Section titled “length”
readonlylength:number
Defined in: driver/src/api.ts:513
retainedFloor
Section titled “retainedFloor”
readonlyretainedFloor:number
Defined in: driver/src/api.ts:514
Methods
Section titled “Methods”move()
Section titled “move()”move(
opts):void
Defined in: driver/src/api.ts:515
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
position()
Section titled “position()”position():
number
Defined in: driver/src/api.ts:516
Returns
Section titled “Returns”number
search()
Section titled “search()”search(
text): readonlyobject[]
Defined in: driver/src/api.ts:518
Parameters
Section titled “Parameters”string | RegExp
Returns
Section titled “Returns”readonly object[]
text()
Section titled “text()”text(
opts?):string
Defined in: driver/src/api.ts:517
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”string