problems with keybindings
Marcel
mlautenb at gmail.com
Wed May 8 09:22:46 CEST 2019
Try setting TERM=xterm-256color
That's works quite well for me.
Cheers,
Marcel
On 5/3/19 11:08 AM, Marc Lehmann wrote:
> On Thu, May 02, 2019 at 08:19:39PM +0200, pfungi at 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.
>
More information about the rxvt-unicode
mailing list