Package: tmux
Version: 2.1-1
Severity: normal

Dear Maintainer,

It seems tmux 2.1 (released on 18 October 2015) does not handle repeat keys as
expected.

The problem can be reproduced like this:
  - start a tmux session;
  - split the current tmux window (either horizontally or vertically, it does
not really matter); you should now have two panes;
  - quickly hit the following keys: Ctrl+b, the adequate arrow key to move to
the other pane and 'c'.
One would expect tmux to move the focus to the other pane and type "c" in it.
However, what happens is that tmux will indeed move the focus to the other pane
but will also eat the 'c' character, consider it a tmux command and create a
new window (as 'c' means "create a new window" on most tmux setups).

This bug is rather annoying as anyone willing to quickly type a command after
having switched to another pane is likely to hit it. Furthermore, the 'c' key
is only an example here, easily obtained by the need to type a "cd" command.
Other shell commands are likely to trigger various tmux commands. For instance,
users could bind "Ctrl+B, s" to "set synchronize-panes"; in such a case,
switching to another pane and quickly typing ssh user@host would duplicate what
they type (like their user password or SSH passphrase) to all other panes of
the current window, leading to potential disclosure.

I joined irc://irc.freenode.org/#tmux and discussed this issue with nicm:
It turns out that:
  - nicm was able to reproduce the issue with tmux 2.1;
  - the issue can be worked around by setting repeat-time to 0 (i.e. set -g
repeat-time 0 in ~/.tmux.conf); however, that makes it a little annoying to
change pane with arrow keys; resizing panes is also made less straightforward.
  - according to nicm, the root issue has already been fixed in tmux's Git
repository, more specifically in commit
8c8cddbe022af5ece9949804cacffbee6b8972fa (Tue Oct 20 14:19:27 2015)



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tmux depends on:
ii  libc6           2.19-22
ii  libevent-2.0-5  2.0.21-stable-2
ii  libtinfo5       6.0+20151017-1
ii  libutempter0    1.1.6-1

tmux recommends no packages.

tmux suggests no packages.

-- no debconf information

Reply via email to