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

TmuxContext

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

View as Markdown

Package
libtmux-swift
Source
Sources/LibTmux/TmuxContext.swift
struct TmuxContext : struct TmuxContext
struct [source]
struct [source]
struct TmuxContext

Where the tmux this process is running inside can be found.

tmux sets $TMUX in every process it starts, holding the socket, the server's pid, and the session — which is how a program launched from a pane can find its way back to the server that launched it without being told.

The session arrives as a bare number where Session/id carries tmux's $ sigil, so it is normalised here. Comparing the two spellings directly is a mismatch that looks like a missing session.

Discussed in Environment

7 declared, 2 inherited

Members

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.