ControlClient.watch
Asks tmux to report a format whenever its value changes.
Source and package
- Qualified name
-
io.github .libtmux .control .Control Client. watch - Package
- io.github.libtmux.control
- Declared in
ControlClient- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/control/ControlClient.java
-
Description#
tmux re-expands the format about once a second and writes a
subscription-changedevent only when the result differs from last time, so the comparison happens in the server and a client that subscribes does nothing at all between changes. This is what makes watching a server cost nothing while it is idle.
tmux command#
The tmux commands behind watch.
tmux C API#
The C declarations in tmux that implement these commands.