libtmux Reference MCP Search
On this page

FormatSubscription

View as Markdown

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

A format tmux reports changes to, rather than being asked for.

refresh-client -B registers one against a control connection. tmux then evaluates the format about once a second and sends SubscriptionChange whenever the value differs from the last one it sent — so "has the foreground command changed?" costs no commands, no captures, and no scrollback at all.

Requires tmux 3.2 or later, which is this package's floor.

6 declared, 0 inherited

Members

  • Scope enum What tmux evaluates the format against.
  • !=(_:_:) function Returns a Boolean value indicating whether two values are not equal.
  • init(name:scope:format:) method
  • format property A tmux format, such as #{pane_current_command}.
  • name property What changes are reported under, and what ControlSession/stopWatching(_:) names.
  • scope property
Esc

Type to search.