Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

mcp.views.Snapshot

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

struct mcp.views.Snapshot
struct [source]
struct [source]
struct mcp.views.Snapshot

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

Members

pane

pane : PaneView
attribute [source]
attribute [source]
pane

The pane itself.

width

width : u32
attribute [source]
attribute [source]
width

How wide it is, in columns.

height

height : u32
attribute [source]
attribute [source]
height

How tall it is, in rows.

cursor_x

cursor_x : Option<u32>
attribute [source]
attribute [source]
cursor_x

Where the cursor sits, counting from the left.

Discussed in Build a workspace from a file

cursor_y

cursor_y : Option<u32>
attribute [source]
attribute [source]
cursor_y

Where the cursor sits, counting from the top.

Discussed in Build a workspace from a file

in_mode

in_mode : bool
attribute [source]
attribute [source]
in_mode

Whether the pane is in a mode, where keys navigate rather than type.

Discussed in Format-token fields

mode

mode : Option<String>
attribute [source]
attribute [source]
mode

Which mode, when it is in one.

scroll_position

scroll_position : Option<i32>
attribute [source]
attribute [source]
scroll_position

How far it is scrolled back, when it is in copy mode.

dead

dead : bool
attribute [source]
attribute [source]
dead

Whether the process in it has ended.

content

content : String
attribute [source]
attribute [source]
content

What the pane is showing.

lines

lines : usize
attribute [source]
attribute [source]
lines

How many lines of it are reported.

dropped

dropped : usize
attribute [source]
attribute [source]
dropped

How many older lines were dropped to honour max_lines .

Esc

Type to search.