Client.capture_text
Capture ordinary rendered screen rows, inclusively, via an owned paste buffer and private file. Reject applicable capture/save hooks. The scratch directory defaults to /tmp and must be local storage shared with the daemon. Pending and alternate-screen byte modes are unsupported. This observes an interval and establishes no stream continuity barrier.
Source and package
- val capture_text : ?cancel:Cancellation
.t -> ?scratch_dir:string -> t -> Libtmux.Pane -> start:int -> end_:int -> (Rendered.t .t , Libtmux.Error ) result.t -
Public owner:
Libtmux_unix- Parameters
-
-
scratch_dir? (string) #
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.