- Module
- libtmux
- Declared in
- Pane
- Package
- libtmux-cxx
- Source
- include/libtmux/entities.hpp
- Other languages
- PythonRubyLuaTypeScriptRustGoJava.NETSwift
- capture ( ) expected< std::string, CommandFailure > ( options : CaptureOptions ) expected< std::string, CommandFailure >
-
The visible contents, as tmux printed them.
capture_linesframes it into lines, and takes a named string: the lines are views into it, so framing this return value directly is a compile error rather than a dangling read.A pane's scrollback can be far larger than the default bound, and a capture that does not fit is reported rather than cut, so a caller reading history passes the size it is prepared to hold.
Discussed in Capture pane output · Capturing output
In other ports Read a pane’s visible contents
- Python
libtmux.Pane.capture_pane - Ruby
LibTmux::Pane#capture - Lua
libtmux.Pane:capture - TypeScript
pane.Pane.capture - Rust
pane.Pane.capture - Go
tmux.Pane.Capture - Java
io.github.libtmux.Pane.Pane.capture - .NET
LibTmux.Pane.CaptureAsync - Swift
Server.capture(_:includingHistory:)
- Python
0 declared, 0 inherited