From: donn@u.washington.edu (Donn Cave)
Subject: Re: Help! The [PageUp] and [PageDown] keys don't work!
Date: 1996/06/13 [thread overview]
Message-ID: <donn-1306961717150001@xceed.cac.washington.edu> (raw)
In-Reply-To: 4pp7pf$q3e@alpha.comsource.net
In article <4pp7pf$q3e@alpha.comsource.net>, dphan@alpha.comsource.net
(David Phan) wrote:
| Help! I am a newbie to xterm. For some reason, the [PageUp]
| and [PageDown] keys don't work when I am editing files with
| vi or PICO. It works fine when I switched to DECterm.
| I am using Software Version: DEC OSF/1 Version 3.1,
| DECwindows Motif Version 1.2.
|
| For your information, the environment variables in the
| xterm session are listed below:
Vi and pico respond to character sequences sent by the
terminal emulator. I don't know what DECterm sends on
a PageUp, but the funny thing is, I can't think of anything
that would make any sense in both vi and pico - their
escape sequences are very different.
Anyway, terminal emulators don't find out what escape
sequences they're supposed to send by looking in termcap,
but xterm does have an X11 "resource" that you can use
to modify keys, VT100.Translations.
*.VT100.Translations: #override \n\
<Key>Prior: scroll-back(1,page) \n\
<Key>Next: scroll-forw(1,page)
Put that in a file, read it with xrdb -merge, and PageUp will
go back one page on the scroll bars. To know that, I had to
read the xterm man page to find its actions and resources,
and I had to use xev to find the X11 name for the key
that on my keyboard had "Page Up" written on it.
I don't think that's what you want - it would be hopelessly
confusing to use the scroll bar while editing in vi or pico.
If you can figure out what escape sequence to use, replace
``scroll-back(1,page)'' with ``string("\033[A")'' or whatever -
\033 is the Escape character.
Good luck, this is about the most complicated thing to
customize, so afterwards you'll know everything there is to know.
Donn Cave, University Computing Services, University of Washington
donn@u.washington.edu
next prev parent reply other threads:[~1996-06-13 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-13 4:00 Help! The [PageUp] and [PageDown] keys don't work! David Phan
1996-06-13 4:00 ` Donn Cave [this message]
1996-06-14 4:00 ` Paul David Fardy
1996-06-16 4:00 ` Hendrik S. Roepcke
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox