Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!sri-unix!hplabs!sdcrdcf!markb From: markb@sdcrdcf.UUCP Newsgroups: comp.emacs Subject: Mapping wierd function keys with GNU Message-ID: <4171@sdcrdcf.UUCP> Date: Thu, 19-Feb-87 12:47:21 EST Article-I.D.: sdcrdcf.4171 Posted: Thu Feb 19 12:47:21 1987 Date-Received: Sat, 21-Feb-87 06:38:03 EST Reply-To: markb@sdcrdcf.UUCP (Mark Biggar) Organization: Unisys - System Development Group, Santa Monica Lines: 19 I want to map the function keys on a couple of terminals that have wierd sequences of characters for their function keys (tvi920 and VT220). I will use the TVI920 as an example. Function keys on the 920 send the sequence "\C-A\r". Now I know I can map these keys by defining a sparce keymap for \C-A, then a sparce keymap for each function key with \r bound to the function wanted. Or I can bind the letters in the \C-A map to functions that gobble up the \r and then invoke the wanted function with call-interactively. Either way it takes a lot of set-up and greatly increases how long emacs takes to come up (which is long enough already). What I really want is a way to tell emacs to ignore the following n characters when even it executes a function for the \C-A keymap. This whole problem is much worse with the VT220 as it uses the sequence "\e[~" so complete binding of the 12 function keys takes dozens of sparse keymaps or an intrepreter function that duplicates a lot of the functionallity of keymaps and the command input system. Mark Biggar {allegra,burdvax,cbosgd,hplabs,ihnp4,akgua,sdcsvax}!sdcrdcf!markb