libtmux Reference MCP Search
On this page

ControlSession

View as Markdown

Package
libtmux-swift
Source
Sources/LibTmux/ControlSession.swift
class ControlSession : actor ControlSession
class [source]
class [source]
class ControlSession

A live control-mode connection.

Commands go in and numbered replies come back, so output belongs to the command that produced it — the attribution a ; list cannot give. Anything the server volunteers meanwhile arrives on notifications .

Discussed in Errors and exceptions

8 declared, 0 inherited

Members

  • assertIsolated(_:file:line:) method Stops program execution if the current task is not executing on this actor's serial executor.
  • assumeIsolated(_:file:line:) method Assume that the current task is executing on this actor's serial executor, or stop program execution otherwise.
  • changes(named:) method Every subscription change on this connection, optionally narrowed to one subscription's name.
  • preconditionIsolated(_:file:line:) method Stops program execution if the current task is not executing on this actor's serial executor.
  • send(_:) method Sends a command and waits for the block tmux brackets its reply with.
  • stopWatching(_:) method Removes the subscription registered under name.
  • watch(_:) method Registers a format subscription on this connection.
  • notifications property Everything the server volunteered: %output, %window-add, and the rest.
Esc

Type to search.