CVS: cvs.openbsd.org: src

Nicholas Marriott <[email protected]>
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/07/10 07:38:45

Modified files:
	usr.bin/tmux   : Makefile alerts.c cmd-attach-session.c 
	                 cmd-break-pane.c cmd-join-pane.c 
	                 cmd-new-session.c cmd-queue.c 
	                 cmd-rename-session.c cmd-resize-pane.c 
	                 cmd-select-layout.c cmd-select-pane.c 
	                 cmd-set-option.c cmd-show-options.c 
	                 cmd-split-window.c cmd-swap-pane.c 
	                 cmd-wait-for.c control-notify.c input.c 
	                 layout-custom.c layout-set.c layout.c monitor.c 
	                 options-table.c options.c paste.c resize.c 
	                 server-client.c server-fn.c server.c session.c 
	                 spawn.c tmux.1 tmux.h tty-keys.c window-copy.c 
	                 window.c 
Added files:
	usr.bin/tmux   : events-payload.c events.c hooks.c 
Removed files:
	usr.bin/tmux   : notify.c 

Log message:
Replace the notification system with events. Events can carry a payload of
additional payload (to reduce problems with lifetime of objects) and are
delivered to one or more event sinks. This is more powerful and reduces the
complex dependencies between control mode and hooks. Events are now used for
hooks, control mode notifications and for monitors (set-hook -B).

wait-for can now wait for an event to fire (-E flag, with -F to for filter),
with -v to print the payload, as well as listing (-l) waiting clients on an
event and forcing one to wake (-w).

A few additional hooks are also now available (pane-created, pane-resized, etc)
and some of the existing ones have additional format variables available.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.