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

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

Returns

LibTmux.ClientAttachment: Native observed result.

Examples

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

Terminal window
$client | LibTmux\Get-TmuxClientAttachment

Same owner

containment 1 of 58 shown

Other members of LibTmux whose names share Get-TmuxClientAttachment. 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-TmuxClientAttachment.

tmux command

task material

The tmux commands behind Get-TmuxClientAttachment.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference