Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!munnari!mundoe!glf From: glf@mundoe.mu.oz (Giuseppe Fiusco) Newsgroups: comp.emacs Subject: key bindings for Micro-EMACS Message-ID: <292@mundoe.mu.oz> Date: Wed, 19-Aug-87 00:46:35 EDT Article-I.D.: mundoe.292 Posted: Wed Aug 19 00:46:35 1987 Date-Received: Sat, 22-Aug-87 01:09:20 EDT Organization: Mathematics, Melbourne Uni, Australia Lines: 45 Every so often there is some discusion about how to make MicroEMACS recognise a certein key sequence eg. the directional keys on a VT100. Given that people will want to bind a wide number of different keys to varioius functions (different terminals and function keys) I have rewritten the key binding method for MicroEMACS so that a function can be bound to any particular key sequence (Except for those the use ^@ (NULL) in the sequence (this may be fixed later)). When MicroEMACS is started up the first thing it does is read a startup file that contains information regarding how particular functions are bound to a particular series of key-strokes. It uses something like the following sequence : [ Command Function Key Strokes ] bind-to-key forward-character \e[C The above example will bind the forward-character function to the keys strokes that are emiited when pressing the right arrow on a VT100 terminal. There is also a way of defining special charater values. Obviously reading in the binding file every time is not the best way of starting up MicroEMACS so it is possible to create a preloaded version. This is achieved by causing A core dump from the loadup file by the command 'core' and then recreating a runable executable from this preloaded core file (BSD4.3 only at the moment as far as I know). This means that only a small number of keys need to be defined in the loadup file. I have retained all of the normal functions provided it MicroEMACS to do with key bindings etc but the syntax is changed slightly. The changes seem to work O-K but I will not gaurantee them to be bug free. If enough people are interested I will tidy it up and post it out (this will probably take a couple of weeks). Giuseppe Fiusco Department of Mathematics , University of Melbourne, Parkville, Victoria 3052, Australia VOICE: (03) 344 7278 (International: +61 3 344 7278) ACSnet: glf@mundoe.mu UUCP: {seismo,mcvax,ukc,ubc-vision}!munnari!mundoe.mu.oz!glf ARPA: munnari!mundoe.mu.oz!glf@seismo.css.gov CSNET: glf%mundoe.mu.oz@csnet-relay