Binding mouse wheel scroll and cursor keys in screen

Suvayu Ali fatkasuvayu+linux at gmail.com
Sun Aug 5 18:46:32 UTC 2012


So no one has any clues about how to bind these capabilities?

On Tue, Jul 31, 2012 at 04:35:37PM +0200, Suvayu Ali wrote:
> Hi,
> 
> I want to bind mouse wheel scroll and cursor keys with modifier keys in
> screen but I am not sure what key code or termcap capability to
> use. This is what I have tried so far with no luck.
> 
> For mouse wheel scroll:
> 
>   bindkey -k SF copy
>   bindkey -k SR copy
>   bindkey -k sf copy
>   bindkey -k sr copy
>   bindkey -k cs copy
>   bindkey -k kF copy
>   bindkey -k kR copy
> 
> The following works for now: bindkey -k k8 copy (for Fn 8)
> 
> Cursor keys:
> 
> + Here I expect to switch window with C-o <left/right>
>   bind \033[C next
>   bind \033[D prev
> + Here I expect to switch window with C-<left/right>
>   bindkey -d ^[[1;5D prev
>   bindkey -d ^[[1;5C next
> + This one was just to see if binding arrow keys work. I expected just
>   <left/right> to switch windows.
>   bindkey -d ^[[D prev
>   bindkey -d ^[[C next
> 
> This works however:
> 
>   bindkey -k kr next
>   bindkey -k kl prev
> 
> What am I missing here? Thanks for any pointers,
> 
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list