pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/tmux tmux: Update to 3.0a



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5fbbc52f81f4
branches:  trunk
changeset: 407067:5fbbc52f81f4
user:      leot <leot%pkgsrc.org@localhost>
date:      Wed Jan 01 15:06:07 2020 +0000

description:
tmux: Update to 3.0a

pkgsrc changes:
 - Remove no longer needed patch applied upstream

Changes:
CHANGES FROM 3.0 to 3.0a

* Do not require REG_STARTEND.
* Respawn panes or windows correctly if default-command is set.
* Add missing option for after-kill-pane hook.
* Fix for crash with a format variable that doesn't exist.
* Do not truncate list-keys output on some platforms.
* Do not crash when restoring a layout with only one pane.

CHANGES FROM 2.9 to 3.0

* Workaround invalid layout strings generated by older tmux versions and add
  some additional sanity checks
* xterm 348 now disables margins when resized, so send DECLRMM again after
  resize.
* Add support for the SD (scroll down) escape sequence.
* Expand arguments to C and s format modifiers to match the m modifier.
* Add support for underscore colours (Setulc capability must be added with
  terminal-overrides as described in tmux(1)).
* Add a "fill" style attribute for the fill colour of the drawing area (where
  appropriate).
* New -H flag to send-keys to send literal keys.
* Format variables for pane mouse modes (mouse_utf8_flag and mouse_sgr_flag)
  and for origin mode (origin_flag).
* Add -F to refresh-client for flags for control mode clients, only one flag
  (no-output) supported at the moment.
* Add a few vi(1) keys for menus.
* Add pane options, set with set-option -p and displayed with show-options -p.
  Pane options inherit from window options (so every pane option is also
  a window option). The pane style is now configured by setting window-style
  and window-active-style in the pane options; select-pane -P and -g now change
  the option but are no longer documented.
* Do not document set-window-option and show-window-options. set-option -w and
  show-options -w should be used instead.
* Add a -A flag to show-options to show parent options as well (they are marked
  with a *).
* Resize panes lazily - do not resize unless they are in an attached, active
  window.
* Add regular expression support for the format search, match and substitute
  modifiers and make them able to ignore case. find-window now accepts -r to
  use regular expressions.
* Do not use $TMUX to find the session because for windows in multiple sessions
  it is wrong as often as it is right, and for windows in one session it is
  pointless. Instead use TMUX_PANE if it is present.
* Do not always resize the window back to its original size after applying a
  layout, keep it at the layout size until it must be resized (for example when
  attached and window-size is not manual).
* Add new-session -X and attach-session -x to send SIGHUP to parent when
  detaching (like detach-client -P).
* Support for octal escapes in strings (such as \007) and improve list-keys
  output so it parses correctly if copied into a configuration file.
* INCOMPATIBLE: Add a new {} syntax to the configuration file. This is a string
  similar to single quotes but also includes newlines and allows commands that
  take other commands as string arguments to be expressed more clearly and
  without additional escaping.
  A literal { and } or a string containing { or } must now be escaped or
  quoted, for example '{' and '}' instead of { or }, or 'X#{foo}' instead of
  X#{foo}.
* New <, >, <= and >= comparison operators for formats.
* Improve escaping of special characters in list-keys output.
* INCOMPATIBLE: tmux's configuration parsing has changed to use yacc(1). There
  is one incompatible change: a \ on its own must be escaped or quoted as
  either \\ or '\' (the latter works on older tmux versions).
  Entirely the same parser is now used for parsing the configuration file
  and for string commands. This means that constructs previously only
  available in .tmux.conf, such as %if, can now be used in string commands
  (for example, those given to if-shell - not commands invoked from the
  shell, they are still parsed by the shell itself).
* Add support for the overline attribute (SGR 53). The Smol capability is
  needed in terminal-overrides.
* Add the ability to create simple menus. Introduces new command
  display-menu. Default menus are bound to MouseDown3 on the status line;
  MouseDown3 or M-MouseDown3 on panes; MouseDown3 in tree, client and
  buffer modes; and C-b C-m and C-b M-m.
* Allow panes to be empty (no command). They can be created either by piping to
  split-window -I, or by passing an empty command ('') to split-window. Output
  can be sent to an existing empty window with display-message -I.
* Add keys to jump between matching brackets (emacs C-M-f and C-M-b, vi %).
* Add a -e flag to new-window, split-window, respawn-window, respawn-pane to
  pass environment variables into the newly created process.
* Hooks are now stored in the options tree as array options, allowing them to
  have multiple separate commands. set-hook and show-hooks remain but
  set-option and show-options can now also be used (show-options will only show
  hooks if given the -H flag). Hooks with multiple commands are run in index
  order.
* Automatically scroll if dragging to create a selection with the mouse and the
  cursor reaches the top or bottom line.
* Add -no-clear variants of copy-selection and copy-pipe which do not clear the
  selection after copying. Make copy-pipe clear the selection by default to be
  consistent with copy-selection.
* Add an argument to copy commands to set the prefix for the buffer name, this
  (for example) allows buffers for different sessions to be named separately.
* Update session activity on focus event.
* Pass target from source-file into the config file parser so formats in %if
  and %endif have access to more useful variables.
* Add the ability to infer an option type (server, session, window) from its
  name to show-options (it was already present in set-option).

diffstat:

 misc/tmux/Makefile                     |   5 +--
 misc/tmux/distinfo                     |  11 +++----
 misc/tmux/patches/patch-osdep-netbsd.c |  44 ----------------------------------
 3 files changed, 7 insertions(+), 53 deletions(-)

diffs (77 lines):

diff -r 7252f30da9e9 -r 5fbbc52f81f4 misc/tmux/Makefile
--- a/misc/tmux/Makefile        Wed Jan 01 14:16:41 2020 +0000
+++ b/misc/tmux/Makefile        Wed Jan 01 15:06:07 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.49 2019/06/15 09:42:52 leot Exp $
+# $NetBSD: Makefile,v 1.50 2020/01/01 15:06:07 leot Exp $
 
-DISTNAME=      tmux-2.9a
-PKGREVISION=   1
+DISTNAME=      tmux-3.0a
 CATEGORIES=    misc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tmux/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}
diff -r 7252f30da9e9 -r 5fbbc52f81f4 misc/tmux/distinfo
--- a/misc/tmux/distinfo        Wed Jan 01 14:16:41 2020 +0000
+++ b/misc/tmux/distinfo        Wed Jan 01 15:06:07 2020 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.42 2019/06/20 08:54:19 leot Exp $
+$NetBSD: distinfo,v 1.43 2020/01/01 15:06:07 leot Exp $
 
-SHA1 (tmux-2.9a.tar.gz) = 33cba73e64c62f46bd244d4472c59371fb747f56
-RMD160 (tmux-2.9a.tar.gz) = e5460971073abb865adcea2a6711e82d84c53838
-SHA512 (tmux-2.9a.tar.gz) = aca6882688727c10c5647443fdd18bbd6c0f80b7a3bf9667903d1b89d523e604cd715f176f33f2e5673258f00e626a6dc273f80fe97ae4f91621814d89985713
-Size (tmux-2.9a.tar.gz) = 510915 bytes
-SHA1 (patch-osdep-netbsd.c) = dc70c92e536eb8fe85e1296e860c49ad95b638d8
+SHA1 (tmux-3.0a.tar.gz) = 0cc951b9ff545b429c101eb562e0be9c5aba5ed4
+RMD160 (tmux-3.0a.tar.gz) = 2b781a3632c11098184f787774742b5e5af761ce
+SHA512 (tmux-3.0a.tar.gz) = f326ee9c0e5e9a46ce9c99c76407b8cf35feea5f898c3c937fd8c5e488ff9a809272de19226d9d10f864e11051dcf633327820b7f8d86d85962da61174bbfb0b
+Size (tmux-3.0a.tar.gz) = 546377 bytes
diff -r 7252f30da9e9 -r 5fbbc52f81f4 misc/tmux/patches/patch-osdep-netbsd.c
--- a/misc/tmux/patches/patch-osdep-netbsd.c    Wed Jan 01 14:16:41 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-$NetBSD: patch-osdep-netbsd.c,v 1.5 2019/06/20 08:54:19 leot Exp $
-
-Add support for KERN_PROC_CWD.
-
-Patch shared and applied upstream via:
-
- <https://github.com/tmux/tmux/pull/1802>
-
---- osdep-netbsd.c.orig        2019-03-26 14:34:58.000000000 +0000
-+++ osdep-netbsd.c
-@@ -135,11 +135,24 @@ osdep_get_cwd(int fd)
-       static char     target[PATH_MAX + 1];
-       char            *path;
-       pid_t           pgrp;
--      ssize_t         n;
- 
-       if ((pgrp = tcgetpgrp(fd)) == -1)
-               return (NULL);
- 
-+#ifdef KERN_PROC_CWD
-+      int             mib[4];
-+      size_t          len;
-+
-+      mib[0] = CTL_KERN;
-+      mib[1] = KERN_PROC_ARGS;
-+      mib[2] = pgrp;
-+      mib[3] = KERN_PROC_CWD;
-+      len = sizeof(target);
-+      if (sysctl(mib, 4, target, &len, NULL, 0) == 0)
-+              return (target);
-+#else
-+      ssize_t         n;
-+
-       xasprintf(&path, "/proc/%lld/cwd", (long long) pgrp);
-       n = readlink(path, target, sizeof(target) - 1);
-       free(path);
-@@ -147,6 +160,7 @@ osdep_get_cwd(int fd)
-               target[n] = '\0';
-               return (target);
-       }
-+#endif
- 
-       return (NULL);
- }



Home | Main Index | Thread Index | Old Index