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.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to