Here are a few step to reproduce.

1) Install xterm and screen if they're not installed. And customize
screen's terminfo.
I join the source of my modified terminfo file. And just run:
$ tic screeninfo.src

2) Make sure xterm and screen terminfo both have the same entry for
the key kPRV. For this, run the following command inside screen and
directly in xterm.
$ infocmp -x1 | grep kPRV
        kPRV=\E[5;2~,

The result should be the same in both case.

3) Make sure Shift + PageUp generate the right escape sequence. For
this, run vim and press Ctrl+V in Insert mode and then press Shift +
PageUp. (The PageUp on the numpad.)
This should show ^[[5;2~ both when vim is run in xterm and in screen.

4) Make sure the bug is there: In vim, press Ctrl+K in Insert mode and
then Shift+PageUp.
This should show <S-PageUp> when vim run in xterm. And show [5;2~ in screen.

5) Bonus: try different combination of values of TERM environment
variable and contents of terminfo file. The correct behavior only
happen when $TERM=xterm.


Celelibi

Attachment: screeninfo.src
Description: WAIS Source

Reply via email to