Hi,

I have an issue with mc (Midnight Commander) running in a tmux
session within urxvt.

when I start mc in a terminal everything works ok. However, if I
start mc in tmux the shift-Fn keys are shifted by two. That means
that rename, which is shift-F6 usually, is shift-F8 under tmux. And
shift-F6 will edit the file in tmux.

“xev” lists:

  keycode 50 (keysym 0xffe1, Shift_L)
  …
  keycode 71 (keysym 0xffc2, F5)

if I press <shift>-<F5> regardless if launched from within tmux or
not.

  mc running without tmux on urxvt : okay, no shift
  mc running with tmux on urxvt    : not ok, off by two
  mc running without tmux in xterm : okay, no shift
  mc running with tmux in xterm    : okay, no shift

This indicates that there's an issue with my urxvt configuration.
Why is that and how can it be fixed?

I don't think mc has anything to do with this, it just happens to be
the only console program that I use requiring shift-Fn keys.

The issue is easily reproduced on a vanilla (e.g. Debian Live) VM. I
can provide exact steps, if required.

Marco

GNU Midnight Commander 4.8.27
tmux 3.2a
rxvt-unicode (urxvt) v9.26 - released: 2021-05-14
TERM=rxvt-unicode-256color (terminal)
TERM=screen-256color (tmux)

_______________________________________________
rxvt-unicode mailing list
rxvt-unicode@lists.schmorp.de
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to