Interface: SelectionApi
@termwright/driver / SelectionApi
Interface: SelectionApi
Section titled “Interface: SelectionApi”Defined in: driver/src/api.ts:521
@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”clear()
Section titled “clear()”clear():
void
Defined in: driver/src/api.ts:527
Returns
Section titled “Returns”void
copy()
Section titled “copy()”copy():
string
Defined in: driver/src/api.ts:526
Returns
Section titled “Returns”string
selectCells()
Section titled “selectCells()”selectCells(
range):void
Defined in: driver/src/api.ts:522
Parameters
Section titled “Parameters”{ column: number; row: number; }
end.column
Section titled “end.column”number
end.row
Section titled “end.row”number
{ column: number; row: number; }
start.column
Section titled “start.column”number
start.row
Section titled “start.row”number
Returns
Section titled “Returns”void