Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site phri.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!cmcl2!phri!roy From: roy@phri.UUCP (Roy Smith) Newsgroups: net.emacs Subject: Using VT-220 function keys in CCA emacs Message-ID: <2134@phri.UUCP> Date: Thu, 16-Jan-86 12:29:19 EST Article-I.D.: phri.2134 Posted: Thu Jan 16 12:29:19 1986 Date-Received: Sun, 19-Jan-86 05:01:53 EST Distribution: net Organization: Public Health Research Inst. (NY, NY) Lines: 24 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 System Administrator, Public Health Research Institute 455 First Avenue, New York, NY 10016