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

property libtmux-dotnet

Session.Attached

Gets whether a client was attached when this session was read.

Source and package
Qualified name
LibTmux.Session.Attached
Namespace
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Lifecycle.cs

Description

This is captured state rather than a live one: it says what tmux reported when the handle was made, which is what makes a reading of a hierarchy consistent with itself.

The control client this library keeps on the server is not counted. A format of your own that reads #{session_attached} counts it.

In other ports

task equivalence 11 other ports mapped

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

Whether a client was attached when captured in each port
PortAPIDiffers from C#
C# LibTmux.Session.Attached
Gets whether a client was attached when this session was read.
This page
Python libtmux.Session.session_attached None recorded in the model
Ruby LibTmux::SessionSnapshot#attached
Behavior: Captured records.
None recorded in the model
Lua libtmux.SnapshotSession.attached None recorded in the model
Elixir LibTmux.Session.attached None recorded in the model
Rust session.Session.is_attached
Report whether any client is attached.
None recorded in the model
Go tmux.Session.Attached
Attached returns tmux #{session_attached} as int from this Session's materialized session-scoped fields.
None recorded in the model
Java io.github.libtmux.Session.attached
Whether a client was attached when this was captured.
None recorded in the model
C++ libtmux::Session::attached
session_attached counts clients rather than rendering a flag, so any count other than zero means attached.
readonly
Swift Session.isAttached
Whether any client is looking at this session. Opening a connection attaches one, so this reads differently from inside Server/connected(attachingTo:_:) — see <doc:Modes>.
None recorded in the model
OCaml Libtmux.Session.attached None recorded in the model
Perl LibTmux::Session::attached
integer. Local captured data; no I/O.
Returns the captured attached-client count; zero means no attached client.
No Haskell equivalent.

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

No TypeScript equivalent.

no accessor; the field is read from Session.format, tmux's own row

No Raku equivalent.

No direct Raku mapping is recorded for this operation; consult the native API reference.

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

Esc
Search in

Type to search.

Reference previewOpen reference