Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!umb!ileaf!io!walters From: walters@io.UUCP (Tim Walters) Newsgroups: comp.emacs Subject: Using Wyse-60 'No Scroll' key as meta key Message-ID: <400@io.UUCP> Date: Wed, 7-Oct-87 02:01:38 EDT Article-I.D.: io.400 Posted: Wed Oct 7 02:01:38 1987 Date-Received: Sat, 10-Oct-87 06:33:50 EDT Reply-To: walters@wally.UUCP (Tim Walters) Organization: Interleaf, Cambridge, MA Lines: 20 We have a few Wyse-60 terminals which we are using with Gnu emacs 18.41. These terminals have a 'No Scroll' key which can be set up to work as a kind of meta key: holding down No Scroll + key sends 3 characters: ctrl-A key CR. I have some functions which bind, say, ctrl-A b CR to backward-word, but I would like to have a technique for making No Scroll + key work *exactly* the same as ESC + key, i.e. as a real meta key, however that key might be bound in the current buffer. Ideally I would like to have a single function, bound to ctrl-A, which handles everything. I can think of a couple of ways this might work, but my knowledge of the Gnu functions is not strong enough to implement them. The function could pick up the next two characters from the input stream and then either push an escape + char back into the input stream, or look up the appropriate function in the meta key keymap table and call it. Can anyone suggest a way to implement this? Any pointers would be appreciated. -- ...!harvard!umb!ileaf!walters Tim Walters, Interleaf ...!sun!sunne!ileaf!walters Ten Canal Park, Cambridge, MA 02141 (617) 577-9813 x5510