Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Help! The [PageUp] and [PageDown] keys don't work!
@ 1996-06-13  4:00 David Phan
  1996-06-13  4:00 ` Donn Cave
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: David Phan @ 1996-06-13  4:00 UTC (permalink / raw)



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:

TERM=xterm
TERMCAP=vs|xterm|vs100|xterm terminal emulator (X window system):
        :do=^J:le=^H:ho=\E[H:   :co#80:li#24:cl=\E[H\E[2J:bs:am:
cm=\E[%i%d;%dH:nd=\E[C:up=\E[A: :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m
:us=\E[4m:ue=\E[m:      :md=\E[1m:mr=\E[7m:me=\E[m:     :ku=\EOA:
kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:  :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:
pt:sf=\n:sr=\EM:        :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:       :
MT:ks=\E[?1h\E=:ke=\E[?1l\E>:xn:        :AL=\E[%dL:DL=\E[%dM:
IC=\E[%d@:DC=\E[%dP:    :hs:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:
ds=\E[?E:       :is=\E\E[m\E[?7h\E[?1;4l:cs=\E[%i%d;%dr:        :
rs=\E[r\E<\E[m\E[H\E[2J\E[?7h\E[?1;3;4;6l:

And for the DECterm session:

TERM=vt300
TERMCAP=db|vt300|vt300-am|Digital VT300:        :hs:es:
ts=\E[1$}\E[;H\E[K:fs=\E[0$}:ds=\E[1$}\E[;H\E[K\E[0$}:   :
rf=/usr/share/lib/tabset/vt300:        :      :ae=4\E(B:as=2\E(<:
      :im=\E[4h:ei=\E[4l:mi:dc=\E[P:dm=:ed=:al=\E[L:dl=\E[M: :
sf=\ED:sr=\EM:  :ce=\E[K:cl=\E[H\E[J:cd=\E[J:cm=\E[%i%d;%dH:
nd=\E[C:up=\E[A:   :so=\E[7m:se=\E[27m:us=\E[4m:ue=\E[24m:  :
md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:   :cr=^M:nl=^J:bl=^G:ta=^I:
        :do=^J:co#80:li#41:cl=50\E[;H\E[2J:sf=2*\ED:   :le=^H:bs:
am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:  :ce=3\E[K:cd=50\E[J:
so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:      :md=2\E[1m:mr=2\E[7m:
mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:    :ct=2\E[3g:st=2\EH:
     :rf=/usr/share/lib/tabset/vt100:       :
rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h:ke=\E[?1l:       :
ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H: :ho=\E[H:k1=\EOP:k2=\EOQ:
k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:   :sc=\E7:rc=\E8:
cs=\E[%i%d;%dr:  :it#8:xo:


Can you help me to solve this problem? Your help is greatly
appriciated.

David Phan
 

-- 
|o|   David Phan           Email: dphan@comsource.net        |o|
|o|   ComSource, Inc.      URL: http://www.comsource.net     |o|
|o|   101 Plaza East Blvd. Suite 316, Evansville, IN 47715   |o|
|o|   Voice: 812.469.0300  Fax: 812.469.0317                 |o|



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help! The [PageUp] and [PageDown] keys don't work!
  1996-06-13  4:00 Help! The [PageUp] and [PageDown] keys don't work! David Phan
@ 1996-06-13  4:00 ` Donn Cave
  1996-06-14  4:00 ` Paul David Fardy
  1996-06-16  4:00 ` Hendrik S. Roepcke
  2 siblings, 0 replies; 4+ messages in thread
From: Donn Cave @ 1996-06-13  4:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help! The [PageUp] and [PageDown] keys don't work!
  1996-06-13  4:00 Help! The [PageUp] and [PageDown] keys don't work! David Phan
  1996-06-13  4:00 ` Donn Cave
@ 1996-06-14  4:00 ` Paul David Fardy
  1996-06-16  4:00 ` Hendrik S. Roepcke
  2 siblings, 0 replies; 4+ messages in thread
From: Paul David Fardy @ 1996-06-14  4:00 UTC (permalink / raw)



Re: termcap info.

There are two databases on terminals: the System V flavoured terminfo
and the older termcap.  It appears that, under Digital UNIX, vi uses
the terminfo database, so you'll have to modify the system terminfo
database or build your own.

--

dphan@alpha.comsource.net (David Phan) writes:
>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.

DECterm uses the vt200 terminfo entry which includes the following
definitions.

	kdo=\E[29~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, khlp=\E[28~,

Add these (at least knp and kpp) to the xterm entry in your xterm
terminfo source file, /usr/lib/terminfo/xterm.ti.  Then run tic
(terminfo compile) on the xterm.ti file.  If your updating the system
terminfo database, remember to "chmod -R a+rX /usr/lib/terminfo/x"
after you tic, else others may not be able to access the database.

The terminfo database consists of binary files stored in a shallow
directory tree, one file per termtype: the vt100 entry is
$TERMINFO/v/vt100, xterm is $TERMINFO/x/xterm--see a pattern? :-)
TERMINFO would be an environment variable specifying the path to your
terminfo database; the default path, /usr/lib/terminfo, is used if you
have no TERMINFO variable set.

--
Re: vi's mapping of npage to ^F, etc.

This automapping is not documented in the ex or vi man pages and
it doesn't appear possible to remap these keys.  You can map the
function keys, though.  I map the keys to change the shiftwidth
and autoindent options.

	map #1 :set ts=8 sw=4^M
	map #2 :set ts=5 sw=5^M
	map #3 :set noai^M
	map #4 :set ai^M

I usually work in states 2 and 4, but I switch to 1 and 3 when working
with tab aligned files or when I cut and paste from one xterm to
another.  Those are literal carriage returns that I put in my .exrc.
Each #<digit> in the map must be matched by a kf<digit> in your terminfo
entry.

Paul Fardy
-- 
Paul David Fardy                      |  pdf@morgan.ucs.mun.ca
Computing and Communications          |  pdf@InfoNET.st-johns.nf.ca
Memorial University of Newfoundland   |
St. John's, NF  A1C 5S7               |



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Help! The [PageUp] and [PageDown] keys don't work!
  1996-06-13  4:00 Help! The [PageUp] and [PageDown] keys don't work! David Phan
  1996-06-13  4:00 ` Donn Cave
  1996-06-14  4:00 ` Paul David Fardy
@ 1996-06-16  4:00 ` Hendrik S. Roepcke
  2 siblings, 0 replies; 4+ messages in thread
From: Hendrik S. Roepcke @ 1996-06-16  4:00 UTC (permalink / raw)



dphan@alpha.comsource.net (David Phan) writes:

>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.

how about:

man -k tset
man -k <your shell>
man stty


man resize


Hendrik


PS: Yes, csh is not working in the manner of the manpages..


-- 
Panther in the Jungle           __..--''``\--....___   _..,_  
-BELIEVE AND DECEIVE-      _.-'    .-/";  `        ``<._  ``-+'~=.
http://www.ang-physik  _.-' _..--.'_    \                    `(^) )
.uni-kiel.de/~hendrik ((..-'    (< _     ;_..__               ; `'



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-06-16  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-13  4:00 Help! The [PageUp] and [PageDown] keys don't work! David Phan
1996-06-13  4:00 ` Donn Cave
1996-06-14  4:00 ` Paul David Fardy
1996-06-16  4:00 ` Hendrik S. Roepcke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox