Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

View as Markdown

Package
libtmux-swift
Source
Sources/LibTmux/Session.swift
Other languages
PythonRubyLuaTypeScriptRustGoJava.NETC++
struct Session : struct Session
struct [source]
struct [source]
struct Session

A tmux session, as it was when the listing was read.

This is a value, not a live handle: nothing here re-reads tmux, and two copies never disagree. Ask the server again for a newer view.

Discussed in Swift workspace builder behavior , Swift workspace builder API · Architecture , Traversal

In other ports A tmux session

11 declared, 2 inherited

Members

  • id property tmux's own session id, stable for the session's lifetime — $0, $1. Names are not: a session can be renamed, and two servers can both have a 0.
  • name property What a person calls it, and what tmux matches when a command names a session. Renameable, so it is not an identity.
  • isAttached property 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>.
  • createdAt property When tmux created the session, in seconds since the epoch. tmux's clock, not this process's.
  • windowCount property tmux's own count, so a caller needing only the number does not have to list the windows to get it.
  • filterFieldID(for:) method The stable wire id for a key path, or nil if the property is not filterable.
  • filterFieldType(_:) method The value kind an id names, or nil when this model does not know it.
  • filterFormatField(_:) method The tmux format field an id reads, or nil when it has no single one.
  • filterValue(_:of:) method Reads the field an id names, or nil if this model has no such field.
  • incarnation property The daemon this value was read from.
  • init(id:name:windowCount:isAttached:createdAt:incarnation:) method

Inherited members

Reached through Equatable.!=(_:_:), Decodable.init(from:).

  • !=(_:_:) Equatable.!=(_:_:) Returns a Boolean value indicating whether two values are not equal.
  • init(from:) Decodable.init(from:) Creates a new instance by decoding from the given decoder.
Esc

Type to search.