6

I'm using rxvt-unicode version 9.06 at Ubuntu 9.10. I was used to aterm, where you can use SHIFT + up/down arrow to scroll the printed output with a line up or down. You can also use SHIFT + pgup/pgdown to scroll one screen up or down.

In urxvt I can use the pgup/pgdown combination as well, but can't use the up/down arrow combination. It is very useful to be able to scroll by single lines. Do you have any idea how to enable the up/down arrow scrolling?

This is my ~/.inputrc:

set show-all-if-ambiguous on

And this is my ~/.Xdefaults:

URxvt*geometry:80x35
URxvt*transparent:true
URxvt*shading:40
URxvt*saveLines:12000
URxvt*foreground:White
URxvt*background:Blue
URxvt*font: -*-terminus-*-*-*-*-14-*-*-*-*-*-*-*
URxvt*color4:RoyalBlue
URxvt*color12:RoyalBlue
URxvt*scrollBar:true
URxvt*scrollBar_right:false
URxvt*scrollstyle:rxvt

2 Answers 2

9

Place the following in your .Xresources or .Xdefaults

URxvt.keysym.Shift-Up: command:\033]720;1\007
URxvt.keysym.Shift-Down: command:\033]721;1\007

See the answer at the UNIX stackexchange site for more information.

1
  • 1
    I am accepting this answer, as this is easier to do than to recompile from source :-) Jun 15, 2014 at 20:11
1

I had to recompile rxvt-unicode and uncomment this in src/feature.h:

/* #define SCROLL_ON_SHIFT */

It was that simple.

1
  • Apparently, there is also a workaround that does not require recompiling.
    – cmc
    Jun 15, 2014 at 16:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .