[ Ulf.Bo...@Informatik.Uni-Oldenburg.de ]
[ http://ca.informatik.uni-oldenburg.de/~ulfb ]
>i`m working in two xterms which were started on two different machines.
>In one of them pressing Page Up/Down will scroll the xterm itself, in
>the other xterm it scrolls the application e.g. vim, joe etc which i
>prefer. I`d like to have this behavior in both xterms, but for now i
>can`t change it - help !
>
>How, and where can i change this in the way that always the application
>will get the keystrokes from the Page Up/Down Keys and not the xterm. It
>seems to be that the xterm didn't pass these keystrokes to the shell.
Assume you are using xterm (which use VT100).
Try put the following in your .Xdefaults file on your HOME directory.
*VT100.Translations: #override\
Shift<KeyPress>Prior: scroll-back(1,halfpage)\n\
Shift<KeyPress>Next: scroll-forw(1,halfpage)\n\
<KeyPress>Prior: scroll-back(1,page)\n\
<KeyPress>Next: scroll-forw(1,page)
Note, there is a Tab character at the front of each line except the first.
This should make both your xterm and vi using PageUp and PageDown keys
to scroll up/down one page. Add SHIFT before PageUp/PageDown for scrolling
up/down half a page.