# control.Event

- **Module:** control
- **Package:** libtmux
- **Language:** Rust
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/control.rs#L90
- **Page:** https://libtmux.org/en/rs/latest/reference/control-event/

Something tmux reported that no command asked for.

The variants cover every notification tmux publishes across the supported
releases. [`Event::Other`] keeps an unrecognized one rather than dropping
it, because tmux adds notifications between releases; its name is the tmux
notification without the leading `%`.

Four of these are newer than the oldest tmux this crate supports:
`%config-error`, `%message`, `%paste-buffer-changed` and
`%paste-buffer-deleted` are never emitted by 3.2a. Nothing else in the
vocabulary is version-dependent.

## Members

- `Output` (constant): A pane produced output.
- `ExtendedOutput` (constant): A pane produced output, and tmux said how far behind it is.
- `Paused` (constant): tmux stopped sending a pane's output.
- `Continued` (constant): tmux resumed a pane it had paused.
- `SessionChanged` (constant): The attached session changed.
- `SessionRenamed` (constant): A session was renamed.
- `SessionWindowChanged` (constant): A session's active window changed.
- `SessionsChanged` (constant): A session was created or destroyed, so the session list is now wrong.
- `WindowAdded` (constant): A window was linked into the attached session.
- `WindowClosed` (constant): A window in the attached session closed.
- `WindowRenamed` (constant): A window in the attached session was renamed.
- `WindowPaneChanged` (constant): A window's active pane changed.
- `UnlinkedWindowAdded` (constant): A window appeared that the attached session does not link.
- `UnlinkedWindowClosed` (constant): A window the attached session does not link closed.
- `UnlinkedWindowRenamed` (constant): A window the attached session does not link was renamed.
- `LayoutChanged` (constant): A window's panes were rearranged, added to, or removed from.
- `PaneModeChanged` (constant): A pane entered or left a mode, such as copy mode.
- `ClientDetached` (constant): A client detached from the server.
- `ClientSessionChanged` (constant): A client switched to a different session.
- `PasteBufferChanged` (constant): A paste buffer was created or replaced.
- `PasteBufferDeleted` (constant): A paste buffer was deleted.
- `SubscriptionChanged` (constant): A format this client subscribed to with `refresh-client -B` changed.
- `ConfigError` (constant): tmux could not read part of its configuration.
- `Message` (constant): A message tmux was asked to display, by `display-message` or a hook.
- `Exit` (constant): The server is going away, so no further events will arrive.
- `Other` (constant): A notification this crate does not model.
- `invalidates_listings` (method): Report whether a listing taken before this event may now be wrong.
- `may_have_added_a_pane` (method): Report whether a pane may have appeared since the last look.
- `pane` (method): Return the pane this event is about, when it is about one.
- `window` (method): Return the window this event is about, when it is about one.
