# pane.CapturedLine

- **Module:** pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/pane.rs#L1688
- **Page:** https://libtmux.org/en/rs/latest/reference/pane-capturedline/

One line of a capture, with what tmux knows about it.

Built by [`Pane::capture_lines`]. The marks come from the OSC 133 sequences
a shell emits around its prompt, so they are present only when the pane's
shell emits them.

## Example

```rust
use libtmux::{CaptureOptions, CapturedLine};

let guard = libtmux::test::TestServer::new().await?;
let server = guard.server();
let session = server.new_session("marked").await?;
let pane = session.panes().await?.remove(0);

if server.capabilities().await?.tmux_version().has_behavior(&libtmux::since::CAPTURE_LINE_FLAGS) {
    let lines: Vec<CapturedLine> = pane.capture_lines(CaptureOptions::visible()).await?;
    assert!(lines.iter().all(|line| !line.starts_output || !line.starts_prompt));
}

guard.shutdown().await?;
```

## Members

- `text` (attribute): The line's text, without the flags tmux prefixed to it.
- `starts_prompt` (attribute): Whether a shell prompt begins on this line.
- `starts_output` (attribute): Whether a command's output begins on this line.
- `wrapped` (attribute): Whether the line continues onto the next row rather than ending.
