Core Library0.xAPI reference

Choose documentation 3

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

method libtmux-dotnet

Client.GetAttachedSessionAsync

Reads the session this client is attached to now.

Source and package
Qualified name
LibTmux.Client.GetAttachedSessionAsync
Namespace
LibTmux
Declared in
Client
Package
LibTmux
Source
src/LibTmux/Client.Administration.cs
async Task<Session?> GetAttachedSessionAsync( CancellationToken cancellationToken = default )
Parameters
Returns

The session, or null when the client is attached to none.

Recorded calls

source calls
No call edges in the C# model.

The C# 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.Client.GetAttachedSessionAsync.

tmux command

task material

The tmux commands behind GetAttachedSessionAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 12 other ports mapped

Source-verified mappings for The session a client is attached to. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

The session a client is attached to in each port
PortAPIDiffers from C#
C# LibTmux.Client.GetAttachedSessionAsync
Reads the session this client is attached to now.
This page
Ruby LibTmux::ClientSnapshot#session
Behavior: Captured records.
on ClientSnapshot
Lua libtmux.SnapshotClient.session None recorded in the model
TypeScript client.Client.session
The session this client is attached to, if it is still attached.
None recorded in the model
Rust client.Client.attached_session
The session this client is attached to.
None recorded in the model
Go tmux.Client.AttachedSession
AttachedSession returns the materialized attached session, if present in the same snapshot. It never queries tmux.
None recorded in the model
Java io.github.libtmux.Client.session
The session this client was attached to when captured. A pure read of the capture.
None recorded in the model
Kotlin io.github.libtmux.kotlin.Client.session
The session this client was attached to when captured. A pure read of the capture.
None recorded in the model
Scala io.github.libtmux.scaladsl.Client.session
The session this client was attached to, if any.
2 overloads
C++ libtmux::Client::session readonly
OCaml Libtmux.Client_observation.session
None means the captured client has no attached session.
free function
Returns the captured session when the attached client had one.
Perl LibTmux::Client::session
LibTmux::Session entity or undef. Local captured data; no I/O.
Captured nullable relation; unloaded data remains an error.
Raku LibTmux::Model::Client.session
The observed associated session, resolved without I/O.
None recorded in the model
No Python equivalent.

client_session is a session name, not a Session object

No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No Swift equivalent.

the relationship is resolved through Snapshot.session(of:)

No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure or F#.

Esc
Search in

Type to search.

Reference previewOpen reference