[comp.emacs] EMACS with EDT emulation and VT220 keyboard.

nat%DRAO.NRC.CA@VM.TCS.TULANE.EDU (Natalie Prowse) (03/11/91)

>If I have the line
>(edt-emulation-on)
>in my .emacs startup file, I can use VT220's keys "Find" "Insert here"
>"Remove" "Select" "Next Screen" "Previous Screen", but cannot use the
>numeric keypad as EDT keypad.
>
>If I have the line in .emacs changed to
>(setq term-setup-hook 'edt-emulation-on)
>I am then able to use the numeric keypad EDT keys, but the 6
>convenient keys above arrows keys ("Insert here", "Find",...) will not
>function.
>
>How can I take both part of advantage for easy editing?  Thank you
>very much for advice.
>
>Charlie Li

I find that the following helps, (put this in your .emacs file):

(defun vax-terminal ()
  "This function should  be called by the term-setup-hook mechanism in your
  .emacs file in order to tailor the VT200 keypad map to your own purposes"
  (interactive)
  (enable-arrow-keys)
  (edt-emulation-on))

(setq term-setup-hook 'vax-terminal)     ; remap keys in due time

I believe that you need to 'enable-arrow-keys' which comes from vt200.el,
in /lib/lisp/term.  Ensure, that in your .login, you have the TERM environment
variable defined (ie: set TERM=vt200), because EMACS uses that terminal
type to look for the enable-arrow-keys function.

Hope this helps,
-Natalie
(p.s., if your want an eve-plus type of emulation, I have one....)
nat@drao.nrc.ca