How to use cursor keys to switch buffers in GNU screen
- by suvayu
I want to use cursor keys or cursor keys with a modifier like
Ctrl to switch between screen buffers (e.g. C-a
[arrow] or C-a C-[arrow]). So far I have tried
settings like the ones below with no success.
bind \224\115 prev
bind \224\116 next
bindkey -d ^[[1;5D prev
bindkey -d ^[[1;5C next
They are either ignored or behave unexpectedly (the second one). I am
also not sure how to specify the keys. To get the characters, I either
used C-v to quote them in bash, or tried to look-up on the
Internet (e.g. http://ascii-table.com/ansi-escape-sequences.php).
Any idea how I can achieve this key binding?