FormatSubscription
Swift
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Watch.swift
- struct FormatSubscription : struct FormatSubscription
-
A format tmux reports changes to, rather than being asked for.
refresh-client -Bregisters one against a control connection. tmux then evaluates the format about once a second and sendsSubscriptionChangewhenever 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.
Discussed in Format-token fields
5 declared, 1 inherited
Members
- format property A tmux format, such as
#{pane_current_command}. - init(name:scope:format:) method
- name property What changes are reported under, and what
ControlSession/stopWatching(_:)names. - scope property
- Scope enum What tmux evaluates the format against.
Inherited members
Reached through Equatable.!=(_:_:).
- !=(_:_:) Equatable.!=(_:_:) Returns a Boolean value indicating whether two values are not equal.