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.

method libtmux-go latest

Client.AttachedSession

AttachedSession returns the materialized attached session, if present in the same snapshot. It never queries tmux.

Source and package
Qualified name
tmux.Client.AttachedSession
Package
tmux
Declared in
Client
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/model.go
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python RubyLuaTypeScriptRustJavaC#C++ Swift KotlinScalaOCamlfunction F# Clojure
func (c Client) AttachedSession() (Session, bool)

In other ports#

The session a client is attached to

Equivalents of The session a client is attached to in other languages
Language Equivalent
Python client_session is a session name, not a Session object
Ruby LibTmux::ClientSnapshot#session
Lua libtmux.SnapshotClient.session
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript client.Client.session
Rust client.Client.attached_session
Java io.github.libtmux.Client.session
Kotlin io.github.libtmux.kotlin.Client.session
Scala io.github.libtmux.scaladsl.Client.session
C# LibTmux.Client.GetAttachedSessionAsync
C++ libtmux::Client::session
Swift the relationship is resolved through Snapshot.session(of:)
OCaml Libtmux.Client_observation.session Returns the captured session when the attached client had one.
Perl LibTmux::Client::session Captured nullable relation; unloaded data remains an error.

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

Esc

Type to search.

Reference previewOpen reference