screen-users
[Top][All Lists]
Advanced

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

Re: rxvt-unicode and alt+arrow bindings


From: Micah Cowan
Subject: Re: rxvt-unicode and alt+arrow bindings
Date: Thu, 21 Jun 2007 11:09:59 -0700
User-agent: Thunderbird 1.5.0.12 (X11/20070604)

address@hidden wrote:
> Greetings,
> 
> I am trying to bind the alt+left_arrow and alt+right_arrow keys to be
> the screen prev and next commands, respectively. I can easily do this
> in xterm via:
> 
> bindkey  "^[[1;3D" prev           # xterm: alt + left arrow
> bindkey  "^[[1;3C" next           # xterm: alt + right arrow
> 
> I obtained this information by issuing the cat command without a file
> parameter, then pressed the appropriate keys. I repeat this exercise
> while inside urxvt ($TERM=rxvt-unicode) and then form the following
> bindings:
> 
> bindkey  "^[^[[D" prev           # urxvt: alt + left arrow
> bindkey  "^[^[[C" next           # urxvt: alt + right arrow
> 
> But these do not work. I can't seem to get any variation of \e or ^[
> working, nor ' and " enclosings. I am often in xterm and urxvt, and
> really need to maintain both sets of bindings. Any help would be
> greatly appreciated, thanks!

Some terminals have different behavior depending on whether "keypad
transmit" mode has been set, which most applications expecting "special
key" input will have set. Instead of a plain cat, try:

$ tput smkx; cat; tput rmkx

which should probably give you something like:

bindkey "^[^[OD" prev           # urxvt: alt + left arrow
bindkey "^[^[OC" next           # urxvt: alt + right arrow

These lines worked for me.

-- 
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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