Model.Session
Captured session with local window-link and group relationships.
Base types LibTmux::Model::View
Source and package
- Qualified name
-
LibTmux:: Model:: Session - Module
- LibTmux
- Declared in
Model- Package
- LibTmux
- Source
- lib/LibTmux/Model.rakumod
- Other languages
- Perlclass ErlangPowerShellcmdlet Juliastruct Elixirstruct Haskelldata type Common Lispclass PythonRubyLuaTypeScriptRustGoJavaC#C++SwiftKotlinScalaOCamlF#module Clojurefunction
-
Description#
Captured session with local window-link and group relationships.
Members12#
Collections and queries1#
- window-links method Captured session/index associations, including repeated links to one physical window.
Common operations7#
- id method Captured
session_id; local session-id access. - name method Captured
session_name; local text access. - created method Captured
session_created; local uint access. - current-link method The session-relative active window placement in this observation.
- path method Captured
session_path; local text access. - group method Observed session group, or Nil when the session is known to be ungrouped.
- grouped method Captured
session_grouped; local bool access.
Other members4#
- activity method Captured
session_activity; local uint access. - attached-count method Captured
session_attached; local uint access. - group-name method Captured
session_group; local text access. - windows-count method Captured
session_windows; local uint access.
Inherited members10 members#
Reached through LibTmux::Model::View.
- bytes method inherited Exact captured bytes, before strict text conversion or normalization.
- clone method inherited Copy this captured value without changing its records or acquiring new data.
- incarnation method inherited Return the captured daemon identity without refreshing it.
- new method inherited Refuse direct view construction; obtain this value from a Snapshot.
- ref method inherited Construct a value-only command target without observing current daemon state.
- relation method inherited Resolve one declared relation locally; incomplete required data raises MissingData.
- same-entity method inherited Compare scoped entity identity; window links additionally require the same snapshot.
- snapshot method inherited Return the retained captured graph; it owns no live transport.
- state method inherited Report availability of a declared field or relation without conflating null and unloaded data.
- value method inherited Return a decoded local field, Nil for known null, or throw MissingData for unavailable data.
In other ports#
A tmux session
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| PowerShell | Lib This cmdlet reads and returns shared .NET LibTmux.Session objects. Child windows and panes require further acquisition. |
| Julia | Lib SessionSnapshot holds captured session data. Actions use its SessionRef, a typed identity bound to an observed daemon generation. |
| Erlang | #tmux |
| Elixir | Lib Session is an immutable observation. Fields not captured read as :unloaded. |
| Haskell | Lib Session is a detached physical session. WindowLink records each placement of a window in it, and operations take a generation-bound SessionRef. |
| Common Lisp | libtmux: session is an immutable captured entity. The same name also has a relation accessor with a distinct public identity. |
| TypeScript | session |
| Rust | session |
| Go | tmux |
| Java | io |
| Clojure | libtmux Acquires a vector of captured session maps. The session value is a map, not a wrapper class. |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| F# | Lib This F# module builds deferred child queries from a shared .NET LibTmux.Session and its server association. Query.list acquires their results from tmux. |
| C++ | libtmux:: |
| Swift | Session |
| OCaml | Libtmux |
| Perl | Lib A captured read-only entity; explicit Server operations accept its stable identity. |