Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/TMUX]: src/external/bsd/tmux/dist Import original sources for tmux 3.3a.
details: https://anonhg.NetBSD.org/src/rev/c4c344a960be
branches: TMUX
changeset: 376693:c4c344a960be
user: wiz <wiz%NetBSD.org@localhost>
date: Wed Jun 28 22:10:15 2023 +0000
description:
Import original sources for tmux 3.3a.
diffstat:
external/bsd/tmux/dist/CHANGES | 184 +++-
external/bsd/tmux/dist/Makefile.am | 15 +-
external/bsd/tmux/dist/Makefile.in | 67 +-
external/bsd/tmux/dist/README | 10 +-
external/bsd/tmux/dist/README.ja | 2 +-
external/bsd/tmux/dist/arguments.c | 638 ++++++++++-
external/bsd/tmux/dist/cfg.c | 6 +-
external/bsd/tmux/dist/client.c | 15 +-
external/bsd/tmux/dist/cmd-attach-session.c | 28 +-
external/bsd/tmux/dist/cmd-bind-key.c | 67 +-
external/bsd/tmux/dist/cmd-break-pane.c | 2 +-
external/bsd/tmux/dist/cmd-capture-pane.c | 4 +-
external/bsd/tmux/dist/cmd-choose-tree.c | 20 +-
external/bsd/tmux/dist/cmd-command-prompt.c | 217 ++-
external/bsd/tmux/dist/cmd-confirm-before.c | 79 +-
external/bsd/tmux/dist/cmd-copy-mode.c | 4 +-
external/bsd/tmux/dist/cmd-detach-client.c | 4 +-
external/bsd/tmux/dist/cmd-display-menu.c | 156 ++-
external/bsd/tmux/dist/cmd-display-message.c | 23 +-
external/bsd/tmux/dist/cmd-display-panes.c | 72 +-
external/bsd/tmux/dist/cmd-find-window.c | 40 +-
external/bsd/tmux/dist/cmd-if-shell.c | 170 +-
external/bsd/tmux/dist/cmd-join-pane.c | 4 +-
external/bsd/tmux/dist/cmd-kill-pane.c | 2 +-
external/bsd/tmux/dist/cmd-kill-server.c | 4 +-
external/bsd/tmux/dist/cmd-kill-session.c | 2 +-
external/bsd/tmux/dist/cmd-kill-window.c | 4 +-
external/bsd/tmux/dist/cmd-list-buffers.c | 2 +-
external/bsd/tmux/dist/cmd-list-clients.c | 4 +-
external/bsd/tmux/dist/cmd-list-keys.c | 24 +-
external/bsd/tmux/dist/cmd-list-panes.c | 2 +-
external/bsd/tmux/dist/cmd-list-sessions.c | 2 +-
external/bsd/tmux/dist/cmd-list-windows.c | 2 +-
external/bsd/tmux/dist/cmd-load-buffer.c | 4 +-
external/bsd/tmux/dist/cmd-lock-server.c | 6 +-
external/bsd/tmux/dist/cmd-move-window.c | 4 +-
external/bsd/tmux/dist/cmd-new-session.c | 59 +-
external/bsd/tmux/dist/cmd-new-window.c | 31 +-
external/bsd/tmux/dist/cmd-parse.c | 686 +++++++-----
external/bsd/tmux/dist/cmd-parse.y | 561 ++++++----
external/bsd/tmux/dist/cmd-paste-buffer.c | 2 +-
external/bsd/tmux/dist/cmd-pipe-pane.c | 16 +-
external/bsd/tmux/dist/cmd-queue.c | 72 +-
external/bsd/tmux/dist/cmd-refresh-client.c | 132 +-
external/bsd/tmux/dist/cmd-rename-session.c | 9 +-
external/bsd/tmux/dist/cmd-rename-window.c | 4 +-
external/bsd/tmux/dist/cmd-resize-pane.c | 19 +-
external/bsd/tmux/dist/cmd-resize-window.c | 10 +-
external/bsd/tmux/dist/cmd-respawn-pane.c | 28 +-
external/bsd/tmux/dist/cmd-respawn-window.c | 27 +-
external/bsd/tmux/dist/cmd-rotate-window.c | 2 +-
external/bsd/tmux/dist/cmd-run-shell.c | 123 +-
external/bsd/tmux/dist/cmd-save-buffer.c | 6 +-
external/bsd/tmux/dist/cmd-select-layout.c | 31 +-
external/bsd/tmux/dist/cmd-select-pane.c | 6 +-
external/bsd/tmux/dist/cmd-select-window.c | 8 +-
external/bsd/tmux/dist/cmd-send-keys.c | 25 +-
external/bsd/tmux/dist/cmd-server-access.c | 147 ++
external/bsd/tmux/dist/cmd-set-buffer.c | 10 +-
external/bsd/tmux/dist/cmd-set-environment.c | 21 +-
external/bsd/tmux/dist/cmd-set-option.c | 40 +-
external/bsd/tmux/dist/cmd-show-environment.c | 10 +-
external/bsd/tmux/dist/cmd-show-messages.c | 2 +-
external/bsd/tmux/dist/cmd-show-options.c | 21 +-
external/bsd/tmux/dist/cmd-show-prompt-history.c | 108 ++
external/bsd/tmux/dist/cmd-source-file.c | 27 +-
external/bsd/tmux/dist/cmd-split-window.c | 88 +-
external/bsd/tmux/dist/cmd-swap-pane.c | 5 +-
external/bsd/tmux/dist/cmd-swap-window.c | 2 +-
external/bsd/tmux/dist/cmd-switch-client.c | 18 +-
external/bsd/tmux/dist/cmd-unbind-key.c | 12 +-
external/bsd/tmux/dist/cmd-wait-for.c | 10 +-
external/bsd/tmux/dist/cmd.c | 117 +-
external/bsd/tmux/dist/colour.c | 129 ++-
external/bsd/tmux/dist/compat.h | 10 +
external/bsd/tmux/dist/compat/getpeereid.c | 54 +
external/bsd/tmux/dist/compat/systemd.c | 58 +
external/bsd/tmux/dist/configure | 357 ++++++-
external/bsd/tmux/dist/configure.ac | 201 +++-
external/bsd/tmux/dist/control.c | 6 +-
external/bsd/tmux/dist/example_tmux.conf | 2 +-
external/bsd/tmux/dist/file.c | 4 +-
external/bsd/tmux/dist/format-draw.c | 202 +--
external/bsd/tmux/dist/format.c | 234 +++-
external/bsd/tmux/dist/fuzz/input-fuzzer.c | 13 +-
external/bsd/tmux/dist/grid-reader.c | 161 +-
external/bsd/tmux/dist/grid.c | 98 +-
external/bsd/tmux/dist/input-keys.c | 48 +-
external/bsd/tmux/dist/input.c | 321 +++--
external/bsd/tmux/dist/job.c | 38 +-
external/bsd/tmux/dist/key-bindings.c | 519 +++++----
external/bsd/tmux/dist/key-string.c | 44 +
external/bsd/tmux/dist/layout-custom.c | 23 +-
external/bsd/tmux/dist/log.c | 40 +-
external/bsd/tmux/dist/menu.c | 104 +-
external/bsd/tmux/dist/mode-tree.c | 36 +-
external/bsd/tmux/dist/names.c | 2 +-
external/bsd/tmux/dist/notify.c | 108 +-
external/bsd/tmux/dist/options-table.c | 186 +++-
external/bsd/tmux/dist/options.c | 81 +-
external/bsd/tmux/dist/osdep-netbsd.c | 3 -
external/bsd/tmux/dist/osdep-openbsd.c | 4 +-
external/bsd/tmux/dist/popup.c | 494 ++++++++-
external/bsd/tmux/dist/proc.c | 19 +-
external/bsd/tmux/dist/resize.c | 132 +-
external/bsd/tmux/dist/screen-redraw.c | 219 ++-
external/bsd/tmux/dist/screen-write.c | 206 +++-
external/bsd/tmux/dist/screen.c | 101 +-
external/bsd/tmux/dist/server-acl.c | 186 +++
external/bsd/tmux/dist/server-client.c | 913 +++++++++++++++--
external/bsd/tmux/dist/server-fn.c | 56 +-
external/bsd/tmux/dist/server.c | 28 +-
external/bsd/tmux/dist/session.c | 14 +-
external/bsd/tmux/dist/spawn.c | 26 +-
external/bsd/tmux/dist/status.c | 473 ++++++--
external/bsd/tmux/dist/style.c | 2 +-
external/bsd/tmux/dist/tmux-protocol.h | 114 ++
external/bsd/tmux/dist/tmux.1 | 581 +++++++++--
external/bsd/tmux/dist/tmux.c | 18 +-
external/bsd/tmux/dist/tmux.h | 839 +++++++++------
external/bsd/tmux/dist/tty-acs.c | 76 +-
external/bsd/tmux/dist/tty-features.c | 15 +-
external/bsd/tmux/dist/tty-keys.c | 80 +-
external/bsd/tmux/dist/tty-term.c | 3 +-
external/bsd/tmux/dist/tty.c | 573 +++++++---
external/bsd/tmux/dist/utf8.c | 17 +-
external/bsd/tmux/dist/window-buffer.c | 8 +-
external/bsd/tmux/dist/window-client.c | 6 +-
external/bsd/tmux/dist/window-copy.c | 1141 +++++++++++++++------
external/bsd/tmux/dist/window-customize.c | 25 +-
external/bsd/tmux/dist/window-tree.c | 15 +-
external/bsd/tmux/dist/window.c | 153 +-
external/bsd/tmux/dist/xmalloc.h | 2 +
133 files changed, 10128 insertions(+), 3877 deletions(-)
diffs (truncated from 24636 to 300 lines):
diff -r 49d4ceb88336 -r c4c344a960be external/bsd/tmux/dist/CHANGES
--- a/external/bsd/tmux/dist/CHANGES Sun Jan 23 16:45:03 2022 +0000
+++ b/external/bsd/tmux/dist/CHANGES Wed Jun 28 22:10:15 2023 +0000
@@ -1,3 +1,181 @@
+CHANGES FROM 3.3 TO 3.3a
+
+* Do not crash when run-shell produces output from a config file.
+
+* Do not unintentionally turn off all mouse mode when button mode is also
+ present.
+
+CHANGES FROM 3.2a TO 3.3
+
+* Add an ACL list for users connecting to the tmux socket. Users may be
+ forbidden from attaching, forced to attach read-only, or allowed to attach
+ read-write. A new command, server-access, configures the list. File system
+ permissions must still be configured manually.
+
+* Emit window-layout-changed on swap-pane.
+
+* Better error reporting when applying custom layouts.
+
+* Handle ANSI escape sequences in run-shell output.
+
+* Add pane_start_path to match start_command.
+
+* Set PWD so shells have a hint about the real path.
+
+* Do not allow pipe-pane on dead panes.
+
+* Do not report mouse positions (incorrectly) above the maximum of 223 in
+ normal mouse mode.
+
+* Add an option (default off) to control the passthrough escape sequence.
+
+* Support more mouse buttons when the terminal sends them.
+
+* Add a window-resized hook which is fired when the window is actually resized
+ which may be later than the client resize.
+
+* Add next_session_id format with the next session ID.
+
+* Add formats for client and server UID and user.
+
+* Add argument to refresh-client -l to forward clipboard to a pane.
+
+* Add remain-on-exit-format to set text shown when pane is dead.
+
+* With split-window -f use percentages of window size not pane size.
+
+* Add an option (fill-character) to set the character used for unused areas of
+ a client.
+
+* Add an option (scroll-on-clear) to control if tmux scrolls into history on
+ clear.
+
+* Add a capability for OSC 7 and use it similarly to how the title is set (and
+ controlled by the same set-titles option).
+
+* Add support for systemd socket activation (where systemd creates the Unix
+ domain socket for tmux rather than tmux creating it). Build with
+ --enable-systemd.
+
+* Add an option (pane-border-indicators) to select how the active pane is shown
+ on the pane border (colour, arrows or both).
+
+* Support underscore styles with capture-pane -e.
+
+* Make pane-border-format a pane option rather than window.
+
+* Respond to OSC 4 queries
+
+* Fix g/G keys in modes to do the same thing as copy mode (and vi).
+
+* Bump the time terminals have to respond to device attributes queries to three
+ seconds.
+
+* If automatic-rename is off, allow the rename escape sequence to set an empty
+ name.
+
+* Trim menu item text more intelligently.
+
+* Add cursor-style and cursor-colour options to set the default cursor style
+ and colour.
+
+* Accept some useful and non-conflicting emacs keys in vi normal mode at the
+ command prompt.
+
+* Add a format modifier (c) to force a colour to RGB.
+
+* Add -s and -S to display-popup to set styles, -b to set lines and -T to set
+ popup title. New popup-border-lines, popup-border-style and popup-style
+ options set the defaults.
+
+* Add -e flag to set an environment variable for a popup.
+
+* Make send-keys without arguments send the key it is bound to (if bound to a
+ key).
+
+* Try to leave terminal cursor at the right position even when tmux is drawing
+ its own cursor or selection (such as at the command prompt and in choose
+ mode) for people using screen readers and similar which can make use of it.
+
+* Change so that {} is converted to tmux commands immediately when parsed. This
+ means it must contain valid tmux commands. For commands which expand %% and
+ %%%, this now only happens within string arguments. Use of nested aliases
+ inside {} is now forbidden. Processing of commands given in quotes remains
+ the same.
+
+* Disable evports on SunOS since they are broken.
+
+* Do not expand the file given with tmux -f so it can contain :s.
+
+* Bump FORMAT_LOOP_LIMIT and add a log message when hit.
+
+* Add a terminal feature for the mouse (since FreeBSD termcap does not have kmous).
+
+* Forbid empty session names.
+
+* Improve error reporting when the tmux /tmp directory cannot be created or
+ used.
+
+* Give #() commands a one second grace period where the output is empty before
+ telling the user they aren't doing anything ("not ready").
+
+* When building, pick default-terminal from the first of tmux-256color, tmux,
+ screen-256color, screen that is available on the build system (--with-TERM
+ can override).
+
+* Do not close popups on resize, instead adjust them to fit.
+
+* Add a client-active hook.
+
+* Make window-linked and window-unlinked window options.
+
+* Do not configure on macOS without the user making a choice about utf8proc
+ (either --enable-utf8proc or --disable-utf8proc).
+
+* Do not freeze output in panes when a popup is open, let them continue to
+ redraw.
+
+* Add pipe variants of the line copy commands.
+
+* Change copy-line and copy-end-of-line not to cancel and add -and-cancel
+ variants, like the other copy commands.
+
+* Support the OSC palette-setting sequences in popups.
+
+* Add a pane-colours array option to specify the defaults palette.
+
+* Add support for Unicode zero-width joiner.
+
+* Make newline a style delimiter as well so they can cross multiple lines for
+ readability in configuration files.
+
+* Change focus to be driven by events rather than scanning panes so the
+ ordering of in and out is consistent.
+
+* Add display-popup -B to open a popup without a border.
+
+* Add a menu for popups that can be opened with button three outside the popup
+ or on the left or top border. Resizing now only works on the right and bottom
+ borders or when using Meta. The menu allows a popup to be closed, expanded to
+ the full size of the client, centered in the client or changed into a pane.
+
+* Make command-prompt and confirm-before block by default (like run-shell). A
+ new -b flags runs them in the background as before. Also set return code for
+ confirm-before.
+
+* Change cursor style handling so tmux understands which sequences contain
+ blinking and sets the flag appropriately, means that it works whether cnorm
+ disables blinking or not. This now matches xterm's behaviour.
+
+* More accurate vi(1) word navigation in copy mode and on the status line. This
+ changes the meaning of the word-separators option: setting it to the empty
+ string is equivalent to the previous behavior.
+
+* Add -F for command-prompt and use it to fix "Rename" on the window menu.
+
+* Add different command histories for different types of prompts ("command",
+ "search" etc).
+
CHANGES FROM 3.2 TO 3.2a
* Add an "always" value for the "extended-keys" option; if set then tmux will
@@ -118,7 +296,7 @@ CHANGES FROM 3.1c TO 3.2
* Add a way for control mode clients to subscribe to a format and be notified
of changes rather than having to poll.
-
+
* Add some formats for search in copy mode (search_present, search_match).
* Do not wait on shutdown for commands started with run -b.
@@ -242,7 +420,7 @@ CHANGES FROM 3.1c TO 3.2
only show windows and C-b . only targets.
* Change all the style options to string options so they can support formats.
- Change pane-border-active-style to use this to change the border colour when
+ Change pane-active-border-style to use this to change the border colour when
in a mode or with synchronize-panes on. This also implies a few minor changes
to existing behaviour:
@@ -3100,7 +3278,7 @@ 19 October 2007
* (nicm) -n on new-session is now -s, and -n is now the initial window name.
This was documented but not implemented :-/.
* (nicm) kill-window command, bound to & by default (because it should be hard
- to hit accidently).
+ to hit accidentally).
* (nicm) bell-style option with three choices: "none" completely ignore bell;
"any" pass through a bell in any window to current; "current" ignore bells
except in current window. This applies only to the bell terminal signal,
diff -r 49d4ceb88336 -r c4c344a960be external/bsd/tmux/dist/Makefile.am
--- a/external/bsd/tmux/dist/Makefile.am Sun Jan 23 16:45:03 2022 +0000
+++ b/external/bsd/tmux/dist/Makefile.am Wed Jun 28 22:10:15 2023 +0000
@@ -13,7 +13,8 @@ dist_EXTRA_tmux_SOURCES = compat/*.[ch]
# Preprocessor flags.
AM_CPPFLAGS += @XOPEN_DEFINES@ \
-DTMUX_VERSION='"@VERSION@"' \
- -DTMUX_CONF='"$(sysconfdir)/tmux.conf:~/.tmux.conf:$$XDG_CONFIG_HOME/tmux/tmux.conf:~/.config/tmux/tmux.conf"'
+ -DTMUX_CONF='"$(sysconfdir)/tmux.conf:~/.tmux.conf:$$XDG_CONFIG_HOME/tmux/tmux.conf:~/.config/tmux/tmux.conf"' \
+ -DTMUX_TERM='"@DEFAULT_TERM@"'
# Additional object files.
LDADD = $(LIBOBJS)
@@ -29,6 +30,9 @@ AM_CFLAGS += -Wwrite-strings -Wshadow -W
AM_CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
AM_CFLAGS += -Wdeclaration-after-statement -Wno-pointer-sign -Wno-attributes
AM_CFLAGS += -Wno-unused-result -Wno-format-y2k
+if IS_DARWIN
+AM_CFLAGS += -Wno-deprecated-declarations -Wno-cast-align
+endif
AM_CPPFLAGS += -DDEBUG
endif
AM_CPPFLAGS += -iquote.
@@ -119,12 +123,14 @@ dist_tmux_SOURCES = \
cmd-select-pane.c \
cmd-select-window.c \
cmd-send-keys.c \
+ cmd-server-access.c \
cmd-set-buffer.c \
cmd-set-environment.c \
cmd-set-option.c \
cmd-show-environment.c \
cmd-show-messages.c \
cmd-show-options.c \
+ cmd-show-prompt-history.c \
cmd-source-file.c \
cmd-split-window.c \
cmd-swap-pane.c \
@@ -167,6 +173,7 @@ dist_tmux_SOURCES = \
screen-redraw.c \
screen-write.c \
screen.c \
+ server-acl.c \
server-client.c \
server-fn.c \
server.c \
@@ -176,6 +183,7 @@ dist_tmux_SOURCES = \
style.c \
tmux.c \
tmux.h \
+ tmux-protocol.h \
tty-acs.c \
tty-features.c \
tty-keys.c \
@@ -198,6 +206,11 @@ if NEED_FORKPTY
nodist_tmux_SOURCES += compat/forkpty-@PLATFORM@.c
endif
+# Add compat file for systemd.
+if HAVE_SYSTEMD
+nodist_tmux_SOURCES += compat/systemd.c
+endif
+
# Add compat file for utf8proc.
if HAVE_UTF8PROC
nodist_tmux_SOURCES += compat/utf8proc.c
diff -r 49d4ceb88336 -r c4c344a960be external/bsd/tmux/dist/Makefile.in
--- a/external/bsd/tmux/dist/Makefile.in Sun Jan 23 16:45:03 2022 +0000
+++ b/external/bsd/tmux/dist/Makefile.in Wed Jun 28 22:10:15 2023 +0000
@@ -105,30 +105,34 @@ bin_PROGRAMS = tmux$(EXEEXT)
@IS_DEBUG_TRUE@@IS_GCC_TRUE@ -Wdeclaration-after-statement \
@IS_DEBUG_TRUE@@IS_GCC_TRUE@ -Wno-pointer-sign -Wno-attributes \
@IS_DEBUG_TRUE@@IS_GCC_TRUE@ -Wno-unused-result -Wno-format-y2k
-@IS_DEBUG_TRUE@@IS_GCC_TRUE@am__append_3 = -DDEBUG
-@IS_GCC_TRUE@am__append_4 = -iquote.
+@IS_DARWIN_TRUE@@IS_DEBUG_TRUE@@IS_GCC_TRUE@am__append_3 = -Wno-deprecated-declarations -Wno-cast-align
+@IS_DEBUG_TRUE@@IS_GCC_TRUE@am__append_4 = -DDEBUG
+@IS_GCC_TRUE@am__append_5 = -iquote.
# Set flags for Solaris.
-@IS_GCC_TRUE@@IS_SUNOS_TRUE@am__append_5 = -D_XPG6
-@IS_GCC_FALSE@@IS_SUNOS_TRUE@am__append_6 = -D_XPG4_2
+@IS_GCC_TRUE@@IS_SUNOS_TRUE@am__append_6 = -D_XPG6
+@IS_GCC_FALSE@@IS_SUNOS_TRUE@am__append_7 = -D_XPG4_2
# Set flags for Sun CC.
-@IS_SUNCC_TRUE@am__append_7 = -erroff=E_EMPTY_DECLARATION
+@IS_SUNCC_TRUE@am__append_8 = -erroff=E_EMPTY_DECLARATION
Home |
Main Index |
Thread Index |
Old Index