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

Read the clients attached to a tmux server.

Source and package
Qualified name
LibTmux\Get-TmuxClient
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxClientCommand.cs
Other languages
Juliafunction Elixirfunction PythonRuby Lua TypeScriptRustGoJavaC#C++SwiftKotlinScalaF#function

Description#

Read current client rows through the native core. Name is an ordinal literal selector, not a wildcard or tmux target expression. Return native Client objects; an empty server or unmatched name produces no objects. AttachedSessionId is captured state, so use Get-TmuxClientAttachment to resolve the current attachment.

Notes

This read does not attach, detach or own any client. Listing an unavailable server writes an error.

Command details#

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

Examples#

Example 1 Read clients from a previously selected native $server. View source

Terminal window
$server | LibTmux\Get-TmuxClient
Parameters
Common parameters 12

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

Returns

LibTmux.Client: Native observed result.

tmux command#

The tmux commands behind Get-TmuxClient.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

List the server's attached clients

Equivalents of List the server's attached clients in other languages
Language Equivalent
Python libtmux.Server.clients
Ruby LibTmux::Server#list_clients
Julia LibTmux.clients clients reads attached clients from a captured Snapshot without contacting tmux.
Elixir LibTmux.Snapshot.clients/1 Returns a Selection of captured attached clients without contacting tmux.
TypeScript server.Server.clients
Rust server.Server.clients
Go tmux.Server.Clients
Java io.github.libtmux.Server.clients
Kotlin io.github.libtmux.kotlin.Server.clients
Scala io.github.libtmux.scaladsl.Server.clients
C# LibTmux.Server.Clients
F# LibTmux.FSharp.Server.clients Builds a deferred client query on the shared .NET LibTmux.Server. Query.list acquires attached clients.
C++ libtmux::Server::clients
Swift Server.clients()

No equivalent is recorded in Lua.

Esc

Type to search.

Reference previewOpen reference