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

LibTmux\Get-TmuxClientAttachment LibTmux\Get-TmuxClientAttachment

Resolve the session, window and pane a client currently views.

Source and package
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxClientAttachmentCommand.cs
Get-TmuxClientAttachment [-Client] <LibTmux.Client> [<CommonParameters>]

Description#

Resolve current attachment data through the native core. Return a ClientAttachment containing native Session , Window and Pane handles. A detached client or missing session produces no output. Window or Pane can be null when unavailable. This explicit live read leaves the original Client unchanged.

Notes

The observation uses several tmux reads and is not a transaction. Server or transport failures write an error rather than becoming an empty result.

Command details#

Command type
cmdlet
Positional binding
Enabled.
Pipeline inputs
LibTmux.Client : Native pipeline owner.
Outputs
LibTmux.ClientAttachment

Examples#

Example 1 Resolve the current attachment of a previously selected native $client . View source

Terminal window
$client | LibTmux\Get-TmuxClientAttachment
Parameters
Common parameters 12

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

Returns

LibTmux.ClientAttachment : Native observed result.

Esc

Type to search.

Reference preview Open reference