Core Library0.xAPI Reference

Choose documentation 2

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

cmdlet libtmux-powershell latest

LibTmux.Get-TmuxPaneContent

Capture rendered text from a pane.

Source and package
Qualified name
LibTmux\Get-TmuxPaneContent
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxPaneContentCommand.cs

Description#

Read a native pane through the core capture request. By default each captured line is a separate string. Raw returns one string joined with LF, without inventing a trailing newline. History starts at the beginning of retained history; StartLine and EndLine select explicit bounds.

Notes

Capture is rendered terminal text, not a byte-exact output stream or proof that a shell command completed. History and StartLine are exclusive. PreserveTrailingSpaces and TrimTrailingSpaces cannot both be selected. Core capability checks govern flags on older tmux versions.

Command details#

Command type
cmdlet
Default parameter set
Range
Positional binding
Enabled.
Pipeline inputs
LibTmux.Pane: Native pipeline type for this command.
Outputs
System.String

Examples#

Example 1 Capture the first pane on the existing server identified by $SocketPath. View source

Terminal window
LibTmux\New-TmuxServer -SocketPath $SocketPath |
LibTmux\Get-TmuxPane |
Select-Object -First 1 |
LibTmux\Get-TmuxPaneContent -Raw
Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

System.String: Native pipeline type for this command.

tmux command#

The tmux commands behind Get-TmuxPaneContent.

tmux C API#

The C declarations in tmux that implement these commands.

Guides#

Pages that discuss Get-TmuxPaneContent.

Esc

Type to search.

Reference previewOpen reference