io.github.libtmux.control.Notification.Notification
Java
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go Unavailable
- Java
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- io.github.libtmux.control.Notification
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/control/Notification.java
-
What a control-mode notification says, typed, for matching on.
Sealed, with
Unknownas the case for everything else. tmux adds notifications between releases, and a closed set with nowhere to put a new one would drop it; here a notification this library does not model yet still arrives, asUnknown, andControlEvent#kind()andControlEvent#fields()still carry what tmux wrote.The forms are tmux's own, from
control-notify.c. A name — of a window, a session, a client — is everything after the id, spaces included, as tmux writes it.Examples
switch (event.notification()) {case Notification.WindowRenamed(WindowId window, String name, boolean attached) -> relabel(window, name);case Notification.SessionsChanged changed -> refreshSessions();default -> {}}
18 declared, 0 inherited
Members
- ClientDetached struct
%client-detached: a client detached. - ClientSessionChanged struct
%client-session-changed: another client is now attached to this session. - Exit struct
%exit: the client is exiting, with tmux's reason when it gave one. - LayoutChanged struct
%layout-change: a window's layout changed, in whichever form tmux reports it. - PaneModeChanged struct
%pane-mode-changed: a pane entered or left a mode. - PasteBufferChanged struct
%paste-buffer-changed: a paste buffer was created or changed. - PasteBufferDeleted struct
%paste-buffer-deleted: a paste buffer was deleted. - read method Reads one notification from its kind and the text after it.
- SessionChanged struct
%session-changed: the attached client is now attached to this session. - SessionRenamed struct
%session-renamed: a session has a new name. - SessionsChanged struct
%sessions-changed: a session was created or destroyed. - SessionWindowChanged struct
%session-window-changed: a session's current window changed. - SubscriptionChanged struct
%subscription-changed: a watched format has a new value. - Unknown struct A notification this library does not model;
ControlEventstill carries all of it. - WindowAdded struct
%window-add: a window was created;attachedis false forunlinked-window-add. - WindowClosed struct
%window-close: a window was destroyed;attachedas forWindowAdded. - WindowPaneChanged struct
%window-pane-changed: a window's active pane changed. - WindowRenamed struct
%window-renamed: a window has a new name;attachedas forWindowAdded.