On Thu, May 02, 2019 at 08:19:39PM +0200, pfu...@tutanota.com wrote:
> bind-key -n C-M-Right next-window
> bind-key -n C-M-Left previous-window
> 
> These keybindings work when I am using xterm or gnome-terminal but they don't 
> work with urxvt when I set TERM to "rxvt-unicode-256color".

tmux probably hardcodes the sequences for those keys, and different
terminals use different key codes for them.

you have to teach tmux about the actual key code sequence which depends on
your configuration - you can either study the reference documentation or
try to "measure" them by typing them into e.g. cat or xxd. For example,
with my config, ctrl-alt-right would result in "ESC ESC [ O c" (the code
for ctrl-right prefixed with another escape for meta).

> So is there anything I could do to make these keybindigs work even when
> using the above TERM-setting and could someone explain to me what is
> going on (i.e. why my keybindings break for a specific TERM-setting)?

The key codes are the same regardless of those TERM setting and neither
rxvt-unicode nor screen defines those keys (it can't really be done, in
fact), so it's almost certain that tmux simply hardcodes those sequences
for some terminals, and it knows about screen, but not urxvt.

tmux probably has a way to specify these sequences directly, or teach it
about unknown terminals.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schm...@schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\

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

Reply via email to