libtmux Reference MCP Search
On this page

Session

View as Markdown

Package
libtmux-swift
Source
Sources/LibTmux/Session.swift
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.

12 declared, 0 inherited

Members

  • !=(_:_:) function Returns a Boolean value indicating whether two values are not equal.
  • 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.
  • filterValue(_:of:) method Reads the field an id names, or nil if this model has no such field.
  • init(from:) method Creates a new instance by decoding from the given decoder.
  • init(id:name:windowCount:isAttached:createdAt:incarnation:) method
  • createdAt property When tmux created the session, in seconds since the epoch. tmux's clock, not this process's.
  • 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.
  • incarnation property The daemon this value was read from.
  • 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>.
  • name property What a person calls it, and what tmux matches when a command names a session. Renameable, so it is not an identity.
  • windowCount property tmux's own count, so a caller needing only the number does not have to list the windows to get it.
Esc

Type to search.