screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding left and right arrow keys


From: Dave Wood
Subject: Re: Binding left and right arrow keys
Date: Mon, 22 Dec 2008 11:37:49 +0000
User-agent: Mutt/1.5.18 (2008-12-10)

On (11:44 22/12/08), Peder Stray <address@hidden> put forth the proposition:
On Mon, 22 Dec 2008, Dave Wood wrote:

I use the following:

# C-left and C-right
bindkey "\033[1;5C" next
bindkey "\033[1;5D" prev

Thanks. These work but I have found a problem with some applications where it seems an application's keybinds override those of screen - mutt and vim in insert mode don't allow these binds to work. Is there some way of forcing screen binds to work no matter which application is running?

I tried unbinding left and right in mutt but it didn't work.

try the same lines but add -a, maybe that helps...

Your codes don't seem to be working. How did you find the codes? Is there a lookup table somewhere on the www? I think control codes depend on the terminal in use.

i used cat, just started it, and pressed the key i wanted the code for, like this (after pressing C-left and C-right):

cat
^[[1;5D^[[1;5C

^[ is of cource \033.

When I do that it shows ^[[D and makes no difference if I am pressing
control or not. This probably explains why it doesn't work for me. But, it
must be reading control somewhere or C-a wouldn't work...


--
  Peder Stray


_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users

--
"I can't decide whether to commit suicide or go bowling."
                -- Florence Henderson





reply via email to

[Prev in Thread] Current Thread [Next in Thread]