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.

MoreLess about this notice

cmdlet libtmux-powershell

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
Parameters
Common parameters 12

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

Returns

System.String: Native pipeline type for this command.

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

Same owner

containment 1 of 58 shown

Other members of LibTmux whose names share Get-TmuxPaneContent. They sit on the same type; that does not make them behave alike.

All 58 members of LibTmux

Recorded calls

source calls
No call edges in the PowerShell model.

The PowerShell reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux\Get-TmuxPaneContent.

tmux command

task material

The tmux commands behind Get-TmuxPaneContent.

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss Get-TmuxPaneContent.

Esc
Search in

Type to search.

Reference previewOpen reference