From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2402a665072e31be X-Google-Attributes: gidfee84,public From: donn@u.washington.edu (Donn Cave) Subject: Re: Help! The [PageUp] and [PageDown] keys don't work! Date: 1996/06/13 Message-ID: #1/1 X-Deja-AN: 160051697 references: <4pp7pf$q3e@alpha.comsource.net> organization: University of Washington newsgroups: comp.unix.osf.osf1 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\ Prior: scroll-back(1,page) \n\ 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