Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!lll-lcc!ames!ucbcad!ucbvax!decvax!tektronix!tekgen!tekigm2!jimb From: jimb@tekigm2.TEK.COM (Jim Boland) Newsgroups: comp.emacs Subject: Re: Microemacs Message-ID: <1949@tekigm2.TEK.COM> Date: Thu, 16-Jul-87 20:17:56 EDT Article-I.D.: tekigm2.1949 Posted: Thu Jul 16 20:17:56 1987 Date-Received: Sat, 18-Jul-87 11:15:18 EDT References: <1250@ihlpm.ATT.COM> <782@cpocd2.UUCP> <149@ivory.SanDiego.NCR.COM> Reply-To: jimb@tekigm2.UUCP (Jim Boland) Organization: Tektronix, Inc., Beaverton, OR. Lines: 36 In article <149@ivory.SanDiego.NCR.COM> mike@ivory.UUCP (Michael Lodman) writes: >>In article <1250@ihlpm.ATT.COM> aaa@ihlpm.ATT.COM (Adams) writes: >>>Does anyone know how to do key bindings for a vt100? I have microemacs >>>3.8i and I cannot get the key bindings to work properly with a >>>vt100. >I would like to know how also. Could someone reply by email or to the >net? Back before Dan Lawrence took over microemacs and it was just a few files, I rewrote getkey and added a few procedures to main.c I wanted microemacs to work with a VT100 and to emulate EDT. It worked fine. Unfortunately, I no longer have it on disk although I do have a hard copy printout. Basically, The problem comes from recognizing the keypad. The procedures for acquiring keystrokes involves getting only control characters, single characters, and Meta characters. If Microemacs sees the metacode, it goes back and gets the next character. You need to make it go back once more for the VT100 keypad. VT100 keystrokes are in the sequence "ESC-O-xx" where xx is the actual key. ME only will see the meta then the O. So, if you have a vt100, you need to go further. You also want to remove the case insensitivity for Control characters. Also, you need to build a procedure that will go back for another keystroke when the PF1 (GOLD) key is hit. It can be done but you need to do some modifying of various files. Another way to start now would be to take vt52.c and modify it, making a vt100.c file. You would then have to go through all the .c and .h files and modify them accordingly wherever they address vt52. I did the modifications three years ago because I needed a decent editor to use under the Uniflex operating system. Fortunately, I did not require usage of that for the last year and hence never upgraded that version of microemacs when Dan took it over. I could probably copy the pertinent portions of my listings and USmail them to interested parties if you respond by e-mail. jim boland tektronix!tekigm2!jimb