- Module
- tmux
- Declared in
- Pane
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/pane_capture.go
- Other languages
- PythonRubyLuaTypeScriptRustJava.NETC++Swift
- Capture ( ctx : context.Context , request : CapturePaneRequest ) ([]string, error)
-
Capture captures printed content from the receiver's exact linked pane. It returns a caller-owned slice. A completed nonzero exit or stderr becomes a
CommandError; any stdout tmux still printed is returned alongside it.This is a point-in-time capture rather than a stream; the zero request reads the visible screen. It may include a shell's echo of
Pane.SendKeysinput. Compare whole lines when polling; useControlClient.NextNotificationorServer.WaitForwhen the application exposes a stream or explicit signal.Invalid positions fail before execution. Transport and context failures return any partial stdout with the error.
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 - Java
io.github.libtmux.Pane.Pane.capture - .NET
LibTmux.Pane.CaptureAsync - C++
libtmux::Pane::capture - Swift
Server.capture(_:includingHistory:)
- Python
0 declared, 0 inherited