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

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

Source and package
Qualified name
LibTmux\Get-TmuxClientAttachment
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.

tmux command#

The tmux commands behind Get-TmuxClientAttachment.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference