How to use cursor keys to switch buffers in GNU screen
        Posted  
        
            by 
                suvayu
            
        on Super User
        
        See other posts from Super User
        
            or by suvayu
        
        
        
        Published on 2011-10-23T14:20:52Z
        Indexed on 
            2012/09/16
            21:43 UTC
        
        
        Read the original article
        Hit count: 244
        
gnu-screen
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?
© Super User or respective owner