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

ControlSession

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/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

5 declared, 3 inherited

Members

  • send(_:) method Sends a command and waits for the block tmux brackets its reply with.
  • watch(_:) method Registers a format subscription on this connection.
  • changes(named:) method Every subscription change on this connection, optionally narrowed to one subscription's name.
  • notifications property Everything the server volunteered: %output, %window-add, and the rest.
  • stopWatching(_:) method Removes the subscription registered under name.

Inherited members

Reached through Actor.assertIsolated(_:file:line:), Actor.assumeIsolated(_:file:line:), Actor.preconditionIsolated(_:file:line:).

  • assertIsolated(_:file:line:) Actor.assertIsolated(_:file:line:) Stops program execution if the current task is not executing on this actor's serial executor.
  • assumeIsolated(_:file:line:) Actor.assumeIsolated(_:file:line:) Assume that the current task is executing on this actor's serial executor, or stop program execution otherwise.
  • preconditionIsolated(_:file:line:) Actor.preconditionIsolated(_:file:line:) Stops program execution if the current task is not executing on this actor's serial executor.
Esc

Type to search.