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-ts latest

Client.session

The session this client is attached to, if it is still attached.

Source and package
Qualified name
Client.session
Module
client
Declared in
Client
Package
libtmux
Source
packages/libtmux/src/client.ts
Other languages
PowerShell Julia Elixir Python RubyLuaRustGoJavaC#C++ Swift KotlinScala F#
session(): Session | undefined

Examples#

client.session?.name;

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
Rust client.Client.attached_session
Go tmux.Client.AttachedSession
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:)

No equivalent is recorded in PowerShell, Julia, Elixir or F#.

Esc

Type to search.

Reference previewOpen reference