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-TmuxPane

LibTmux\Get-TmuxPane LibTmux\Get-TmuxPane

Read panes from a server, session or window.

Source and package
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxPaneCommand.cs
Other languages
Julia (struct)PythonRubyLuaTypeScriptRustGoJavaC#C++SwiftKotlinScalaF# (module)
Server (default): Get-TmuxPane [-Server] <LibTmux.Server> [-Id <System.String>] [<CommonParameters>] Session: Get-TmuxPane [-Session] <LibTmux.Session> [-Id <System.String>] [<CommonParameters>] Window: Get-TmuxPane [-Window] <LibTmux.Window> [-Id <System.String>] [<CommonParameters>]

Description#

Acquire panes from the native owning object. Id is an ordinal literal selector. Linked windows can expose multiple contextual placements of one physical pane. Use native Where-Object over the returned captured properties for local selection.

Notes

CurrentCommand and CurrentPath read captured data without I/O. Zero results emit nothing; one emits one object; many emit separate objects. Use @() for a stable array.

Command details#

Command type
cmdlet
Default parameter set
Server
Positional binding
Enabled.
Pipeline inputs
LibTmux.Server : Native pipeline type for this command.; LibTmux.Session : Native pipeline type for this command.; LibTmux.Window : Native pipeline type for this command.
Outputs
LibTmux.Pane

Examples#

Example 1 List panes on the existing server identified by $SocketPath . View source

Terminal window
LibTmux\New-TmuxServer -SocketPath $SocketPath | LibTmux\Get-TmuxPane
Parameters
Common parameters 12

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

Returns

LibTmux.Pane : Native pipeline type for this command.

tmux command list-panes

Discussed in Captured state and I/O · Send input to a pane , Arrange panes and resize windows , Read tmux objects

In other ports A tmux pane
In other ports List a window's panes
In other ports List a session's panes
In other ports List the server's panes
Esc

Type to search.

Reference preview Open reference