Skip to content

Interface: CellSnapshot

@termwright/driver


@termwright/driver / CellSnapshot

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

@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 attributes: CellAttributes

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


readonly bg: CellColor

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


readonly char: string

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


readonly fg: CellColor

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


readonly optional link?: CellLink

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

The OSC 8 hyperlink covering this cell, when it has one.


readonly width: 0 | 1 | 2

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