tmux_pane:capture/2
Capture terminal bytes, preserving final newlines. Options select line range, joined wraps, escapes, alternate screen and padding; defaults follow tmux current-screen capture. Performs I/O and returns an explicit output-limit error instead of silently truncating.
Source and package
- capture(Pane, Options) -spec capture(tmux
_model: (), capturepane _options ()) -> {ok, binary()} | {error, map()}. -
- Parameters
-
-
Pane(tmux_model: ()) #pane -
Options(capture_options ()) #
-
tmux command#
The tmux commands behind capture/2.
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 |
| 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 |
| Perl | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in PowerShell, Julia, Elixir or Common Lisp.