The Computer Oracle

Ctrl + arrow keys for tmux not working in PuTTY

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island

--

Chapters
00:00 Ctrl + Arrow Keys For Tmux Not Working In Putty
00:29 Answer 1 Score 0
00:49 Accepted Answer Score 18
01:44 Thank you

--

Full question
https://superuser.com/questions/1165287/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#ssh #putty #tmux

#avk47



ACCEPTED ANSWER

Score 18


Add the following line to ~/.tmux.conf

set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@"

Source: https://stuff.mit.edu/afs/athena/project/bsd/src/tmux-1.3/FAQ

Ctrl and arrow keys doesn't work in putty! What do I do?

putty inverts the sense of the cursor key mode on ctrl, which is a bit hard for tmux to detect properly. To get ctrl keys right, change the terminfo settings so kUP5 (Ctrl-Up etc) are the adjusted versions, and disable smkx/rmkx so tmux doesn't change the mode. For example with this line in .tmux.conf (assuming you have TERM set to xterm):

set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@"

Note that this will only work in tmux 1.2 and above.




ANSWER 2

Score 0


Ctrl+b then release both and then Ctrl+arrow key to adjust size(holding Ctrl press fast multiple times arrow if needed)

Make sure that you don't have a long pause between pressing, otherwise it will resize just one step at time