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.

mcp.views.Snapshot

struct mcp.views.Snapshot

A pane's contents and the state a capture leaves out.

Fields12#

Snapshot fields
NameTypeDescription
pane PaneView The pane itself.
width u32 How wide it is, in columns.
height u32 How tall it is, in rows.
cursor_x Option<u32> Where the cursor sits, counting from the left.
cursor_y Option<u32> Where the cursor sits, counting from the top.
in_mode bool Whether the pane is in a mode, where keys navigate rather than type.
mode Option<String> Which mode, when it is in one.
scroll_position Option<i32> How far it is scrolled back, when it is in copy mode.
dead bool Whether the process in it has ended.
content String What the pane is showing.
lines usize How many lines of it are reported.
dropped usize How many older lines were dropped to honour max_lines.
Esc

Type to search.

Reference previewOpen reference