Server.capture_pane
capture_pane(pane => Pane|pane_id, start => integer?, end => integer?).
Source and package
-
Description#
Read a
LibTmux::Paneand return raw terminal octets, including tmux's final newline. Optional start/end select native history rows; no UTF-8 replacement is performed. This I/O reads current observed content without waiting for application work. Command/transport failures propagate throughLibTmux::X.my $bytes = $server->capture_pane(pane => $pane, start => -20);Methods#
tmux command#
The tmux commands behind capture_pane.
capture-pane display-message (daemon identity or target preflight) tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Read a pane’s visible contents
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | io |
| Clojure | libtmux |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| F# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
No equivalent is recorded in PowerShell, Julia, Elixir or Common Lisp.