Core LibraryalphaAPI 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-cxx latest

Session.attached

session_attached counts clients rather than rendering a flag, so any count other than zero means attached.

Source and package
Qualified name
libtmux::Session::attached
Namespace
libtmux
Declared in
Session
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLua TypeScript RustGoJavaC#Swift Kotlin Scala OCaml F# Clojure
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] bool attached() const noexcept;

In other ports#

Whether a client was attached when captured

Equivalents of Whether a client was attached when captured in other languages
Language Equivalent
Python libtmux.Session.session_attached
Ruby LibTmux::SessionSnapshot#attached
Lua libtmux.SnapshotSession.attached
Elixir LibTmux.Session.attached
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no accessor; the field is read from Session.format, tmux's own row
Rust session.Session.is_attached
Go tmux.Session.Attached
Java io.github.libtmux.Session.attached
C# LibTmux.Session.Attached
Swift Session.isAttached
OCaml Libtmux.Session.attached
Perl LibTmux::Session::attached Returns the captured attached-client count; zero means no attached client.

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

Esc

Type to search.

Reference previewOpen reference