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 mappedSource-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.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Gets whether a client was attached when this session was read. | This page |
| Python | libtmux | None recorded in the model |
| Ruby | Lib Behavior: Captured records. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Elixir | Lib | None recorded in the model |
| Rust | session Report whether any client is attached. | None recorded in the model |
| Go | tmux Attached returns tmux #{session_attached} as int from this Session's materialized session-scoped fields. | None recorded in the model |
| Java | io Whether a client was attached when this was captured. | None recorded in the model |
| C++ | libtmux:: session_attached counts clients rather than rendering a flag, so any count other than zero means attached. | readonly |
| Swift | Session 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 | None recorded in the model |
| Perl | Lib integer. Local captured data; no I/O. | Returns the captured attached-client count; zero means no attached client. |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no accessor; the field is read from Session.format, tmux's own row
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#.