Trying to bind a command to ctrl-up, but /bind ^up doesn't work the way I expect. I'm guessing it's being parsed as ctrl-U+P.
Is there a way to do this?
I opened a terminal, issued cat without parameters and pressed Ctrl+Up and Ctrl+Down. This generated the key codes ^[Oa and ^[Ob for me (do it yourself, the exact codes can rely on terminal, etc.). I then pasted this into irssi as
/bind ^[Oa next_window
/bind ^[Ob previous_window
and now Ctrl+Up and Ctrl+Down goes to the next/previous window respectively.
Upandctrl-up. – zigdon Apr 17 '12 at 07:40set-window-option -g xterm-keys onin your~/.tmux.confto catch more key codes, and similar options might exist for other configurations. – Daniel Andersson Apr 17 '12 at 07:46catand then typing the desired combo – shime Sep 04 '14 at 09:29