mcp.views.Snapshot
-
A pane's contents and the state a capture leaves out.
Fields12#
| Name | Type | Description |
|---|---|---|
| pane | Pane | 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. |