Core LibraryAPI Reference

Choose documentation 2

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

cmdlet libtmux-powershell latest

LibTmux.Get-TmuxPaneContent

LibTmux\Get-TmuxPaneContent LibTmux\Get-TmuxPaneContent

Capture rendered text from a pane.

Source and package
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.

Discussed in Capture, refresh and raw commands , Send input to a pane

Esc

Type to search.

Reference preview Open reference