escape sequences for rxvt

May 1, 2009

I’m posting this info because I had a hard time searching for it on the internet.

if you are using rxvt (or urxvt), and you want escape sequences to work as in xterm, you need to specify them in your .Xdefaults.

here are the codes I had to add to have vim working properly on rxvt (I use alt-left_arrow and alt-right_arrow to navigate through tabs):

*Rxvt*meta8: false
*Rxvt.keysym.C-Left: +033[1;5D
*Rxvt.keysym.C-Right: +033[1;5C
*Rxvt.keysym.M-Left: +033[1;3D
*Rxvt.keysym.M-Right: +033[1;3C
(substitute “+” with “\”)


2 Responses to “escape sequences for rxvt”

  1. Ingo Says:

    You made my day ! That’s absolutely what I was looking for – to also get the shell working again correctly (ctrl-left|right for word jumps) in urxvt with tabbing enabled

  2. Alexander Says:

    God bless you!

    Thank you SO MUCH for that hack!

    I also add a combination for up and down arrows which looks like that
    *Rxvt.keysym.C-Up: +033[1;5A
    *Rxvt.keysym.C-Down: +033[1;5B
    (substitute “+” with “\”)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: