MCPconceptAPI 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

Concept example A working example of the core library. It can change without notice. What concept means

LibTmux.Mcp.PaneSnapshot

A pane's content and its screen state, read together.

Description

One call rather than a capture followed by an info read: the two would be separated by however long the model took to ask again, and a pane can move in between, which is how a cursor ends up described against the wrong text.

Parameters
  • Pane (PaneInfo) – What the pane is and what runs in it.

  • Content (BoundedText) – What is on the screen, within the budget.

  • CursorX (int?) – The cursor's column, zero-based.

  • CursorY (int?) – The cursor's row within the visible screen, zero-based.

  • AlternateScreen (bool) – Whether a full-screen program owns the pane. When it does, scrollback holds whatever was on screen before that program started, not its output.

Properties5

PaneSnapshot properties
NameTypeDescription
Pane PaneInfo What the pane is and what runs in it.
Content BoundedText What is on the screen, within the budget.
CursorX int? The cursor's column, zero-based.
CursorY int? The cursor's row within the visible screen, zero-based.
AlternateScreen bool Whether a full-screen program owns the pane. When it does, scrollback holds whatever was on screen before that program started, not its output.
Esc
Search in

Type to search.

Reference previewOpen reference