screen-users
[Top][All Lists]
Advanced

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

Re: bind pgup key to scrollback


From: Micah Cowan
Subject: Re: bind pgup key to scrollback
Date: Wed, 04 Mar 2009 09:49:35 -0800
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Asif Iqbal wrote:
> On Wed, Mar 4, 2009 at 3:39 AM, Micah Cowan <address@hidden> wrote:
>  - What is the output of the "infocmp" command
> 
>> #       Reconstructed via infocmp from file: /usr/share/lib/terminfo/x/xterm
>> xterm|vs100|xterm terminal emulator,

<snip>

The output didn't include "kpp", which is the terminfo equivalent to
"kP". So screen has no way to know what sequence of characters
represents `pgup'.

There are a few ways to address this. One would be to use a more
up-to-date terminfo description for xterm; the one that ships with
recent versions of GNU ncurses has kpp, for instance.

Another method would be to save the "infocmp xterm" output to a file,
add appropriate definitions (... knp=\E[6~, kpp=\E[5~ ...), and then run
the "tic" command on that file (as root if you want it to apply
system-wide).

Perhaps the easiest way to deal with it (for screen only), is to add the
following line to your ~/.screenrc or /etc/screenrc:

  termcapinfo xterm* kN=\E[6~:kP=\E[5~

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmuvyYACgkQ7M8hyUobTrESegCeI9VAc0vgQxpd8kKQ/ixew+Uv
PZkAoIMD/iyOOo8dWCFzqGe6UP8rf+ob
=6xbH
-----END PGP SIGNATURE-----




reply via email to

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