Client.capture_text
Inclusive ordinary screen rows, using a bounded private file transfer. Qualified local scratch storage must be shared with the daemon.
Source and package
- val capture_text : ?scratch_dir:string -> t -> Libtmux
.Pane -> start:int -> end_:int -> (Rendered.t .t , Libtmux.Error ) result.t -
Public owner:
Libtmux_eio
tmux command#
The tmux commands behind capture_text.
capture-pane delete-buffer (while the connection remains open) list-buffers save-buffer show-hooks 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 |
| 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.