Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-swift latest

TmuxContext

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

Source and package
Qualified name
TmuxContext
Package
libtmux-swift
Source
Sources/LibTmux/TmuxContext.swift
struct TmuxContext : struct TmuxContext

Description#

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.

Members7#

Common operations1#

  • current(environment:) method The context of the tmux this process is running inside, or nil when it is not running inside one.

Other members6#

Inherited members2 members#

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

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

Guides#

Pages that discuss TmuxContext.

Esc

Type to search.

Reference previewOpen reference