Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using VT-220 function keys in CCA emacs

1 view
Skip to first unread message

Roy Smith

unread,
Jan 16, 1986, 12:29:19 PM1/16/86
to

We've got a VT-220 clone as a demo and I'm trying to make the
function keys do useful things in emacs (CCA version 162.43z). The
sequences the special keys send are a pain to make emacs recognize; they
are all of the format "esc [ N N ~".

By way of example, the "Help" key sends "esc [ 2 8 ~". I put in my
my init file (.emacs_keys) the following:

M-[ ^R Prefix Character For Function Keys
M-[ 2 ^R Prefix Character For Function Keys
M-[ 2 8 ^R Prefix Character For Function Keys
M-[ 2 8 ~ ^R Help

This works, but it means two lines in the init file for every key I
want to support, plus one more line for every group of 10. It seems like
there has to be a better way. The other, equally ugly, alternative is to
reprogram the keys. I could reprogram "Help" to send "esc X C-R Help
return" but that seems a bit absurd. Can anybody think of a nicer way to
do this?
--
Roy Smith <allegra!phri!roy>
System Administrator, Public Health Research Institute
455 First Avenue, New York, NY 10016

Steve Zimmerman

unread,
Jan 19, 1986, 10:38:24 AM1/19/86
to
CCA EMACS has a special function called Prefix Character with Terminator
which is designed for terminals such as Televideos, Suns, and VT-220s
that have a lot of function keys with the same character ending each
escape sequence. For example, on my Sun, the L3 key sends <ESC>[194z.
The entry in the keys file is

\e [ 1 9 4 Goto Beginning

The 'z' is automatically thrown away by EMACS. Note that you still have
to have the normal prefix character commands for the first several
characters.

Steve Zimmerman

Phil Ngai

unread,
Jan 24, 1986, 10:01:09 PM1/24/86
to
In article <21...@phri.UUCP> r...@phri.UUCP (Roy Smith) writes:
>
> We've got a VT-220 clone as a demo and I'm trying to make the
>function keys do useful things in emacs (CCA version 162.43z). The
>sequences the special keys send are a pain to make emacs recognize; they
>are all of the format "esc [ N N ~".

Not only that, but on a real VT-220, the function keys have to be
shifted to send user defined sequences.
--
This may not even represent *my* opinion.

Phil Ngai +1 408 749 5720
UUCP: {ucbvax,decwrl,ihnp4,allegra}!amdcad!phil
ARPA: amdcad!ph...@decwrl.dec.com

0 new messages