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.

enum libtmux-swift latest

TmuxMode

How work reaches tmux.

Source and package
Qualified name
TmuxMode
Package
libtmux-swift
Source
Sources/LibTmux/TmuxMode.swift
enum TmuxMode : enum TmuxMode

Description#

One dial with two settings. Choosing one never changes the call you write or the type you get back — Server.sessions() returns [Session] either way. What changes is whether that crossed a process boundary or a connection that was already open.

ModeWhat it doesWhen it wins
.directA tmux process per callOne call, or calls far apart
.connected(to:)One live connection for the scopeMore than one call, and anything that wants to be told what changed

Server.using(_:_:) takes one of these, so a program that decides at runtime — a flag, a config file, a benchmark measuring both — writes the choice as data instead of branching around two shapes of call.

Members2#

  • connected(to:): case connected(to: String) constant One control-mode connection carrying every call in the scope.
  • direct: case direct constant A tmux process per call. The default, and the one nothing has to say.

Inherited members1 member#

Reached through Equatable.!=(_:_:).

  • !=(_:_:) function inherited Returns a Boolean value indicating whether two values are not equal.
Esc

Type to search.

Reference previewOpen reference