Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-ts

Pane.captureBounded

Read the tail of a pane grid range within native row and UTF-8 byte limits.

Source and package
Qualified name
Pane.captureBounded
Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.ts

Description

The byte budget reserves space for the widest possible contents of each row. If one row cannot fit at the current dimensions, the result is empty. tmux checks the pane dimensions before it reads the grid. One resize can be retried against the same daemon within the original deadline.

Parameters
Errors
  • RangeError – for invalid row or byte limits or native row offsets.

Examples

const limits = { byteLimit: 64_000, lineLimit: 12 };
const { lines } = await pane.captureBounded(limits);

Same owner

containment 1 of 51 shown

Other members of pane.Pane whose names share captureBounded. They sit on the same type; that does not make them behave alike.

All 51 members of Pane

Recorded calls

source calls
No call edges in the TypeScript model.

The TypeScript reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls pane.Pane.captureBounded.

Esc
Search in

Type to search.

Reference previewOpen reference