Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get shift+arrow keys working in tmux

Tags:

tmux

I tried adding the below to ~/.tmux.conf so that i could use Shift+arrow keys to jump across windows, but doesnt work.

bind -n S-Left  previous-window
bind -n S-Right next-window

This is not under vim as I saw in other qns answered in stackoverflow. Even if I tried to use this for navigating across panes it doesnt work. However, if I use the Alt+arrow keys it works like a charm.

Any way I could get the Shift+arrow mappings work?

like image 341
Binu Avatar asked Oct 18 '25 20:10

Binu


1 Answers

Although PuTTY sets the TERM variable to xterm, its behavior does not in fact match xterm's behavior link

There is a bug in PuTTy which causes binding of shift key to not work link

Your can switch to KiTTy, a fork of PuTTY, which solves the problem you are facing,

like image 66
isAif Avatar answered Oct 21 '25 08:10

isAif



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!