[comp.emacs] Function key problem in emacs on vaxstation xterm

sra@gordon.UUCP (Sreedhar Annamalai) (10/04/90)

I have a peculiar problem with function keys. They do not seem to be
recognized by emacs as soon as they are hit. They need to be followed up
with a press of some other key for the first one to be recognized and
processed. The problem seems to be with only the function keys F1-F20,HELP,DO,
FIND, SELECT, ..., PREV SCREEN and NEXT SCREEN. The keypad keys and the
arrow keys are processed fine. If I press PREV SCREEN, I need to hit
another key (eg. space bar or PREV SCREEN again) for emacs to scroll to
previous screen. The PREV SCREEN key sends <esc>[5~ to
emacs, but emacs seems to get only <esc>[5 when the key is pressed. The
final tilde character is received by emacs only after another key
press.

The above happens when I am in an xterm on an ULTRIX machine (vaxstation
2000 if you need me to be specific and if you need to pity), dlogin to a VMS
node and run emacs on the VMS node.

The function keys are a problem only on emacs. 'edt' and 'wordperfect'
work okay.

Was wondering if anyone else had come across this problem and have a
solution. Would appreciate any ideas.

Sreedhar
-------------------------
Sreedhar Annamalai
Access Technology, Inc.
harvard.harvard.edu!gordon!sra

moconnor@vela.acs.oakland.edu (Mike O'Connor) (10/04/90)

In article: <129@gordon.UUCP>,
sra@gordon.UUCP (Sreedhar Annamalai) writes:

(problems and problems)
| previous screen. The PREV SCREEN key sends <esc>[5~ to
| emacs, but emacs seems to get only <esc>[5 when the key is pressed. The
| final tilde character is received by emacs only after another key
| press.
| 
| The above happens when I am in an xterm on an ULTRIX machine (vaxstation
| 2000 if you need me to be specific and if you need to pity), dlogin to a VMS
| node and run emacs on the VMS node.
| 
| The function keys are a problem only on emacs. 'edt' and 'wordperfect'
| work okay.

Sounds like one of two problems is at work:

1.  dlogin is eating your control characters.  I have quite a bit of 
    difficulty running EVE when using dlogin from an Ultrix to a VMS
    machine.

2.  Your emacs on VMS is not properly configured to take the PREV
    SCREEN and other keys.  (As far as I know, ESC V is the emacs
    "previous screen" command.)

What version of emacs are you running and what version of Ultrix are
you using?  I have been told that there are enhancements to Ultrix 4.0
that make dlogin behave a little better.

						...Mike



-- 
--              moconnor@argo.acs.oakland.edu           Internet     
--              moconnor@oakland                        Bitnet
--              ...!uunet!umich!egrunix!moconnor        UUCP
--