Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!gateway!TYCHO.NCSC.MIL!hsw From: hsw@TYCHO.NCSC.MIL (Howard Weiss) Newsgroups: comp.emacs Subject: Re: problem with META key on SUN with uEMACS 3.10 Message-ID: <45677@bbn.COM> Date: 15 Sep 89 20:06:00 GMT Sender: news@bbn.COM Organization: BBN news/mail gateway Lines: 18 Re: my previous message where I could not get uEMACS 3.10 to recognize or do anything useful with the META (ESC) key on a SUN running SUN OS-4.0.3. I have now found the problem! There is an error in tcap.c as distributed in the get1key() routine. On line 441 of tcap.c, there is a line "#if XENIX | SUNOS." As it turns out, this is the ONLY time the term "SUNOS" appears in the code. All other references to the SUN appear as "SUN". Since there is no definition of "SUNOS" none of the ifdef'd code is compiled in to handle META key timeouts! If one simply changes the SUNOS to SUN, then tcap won't compile on the SUN since there is no support for "nap" or "rdchk" as on XENIX. The bottom line fix is to add SUN to the "#if BSD | V7 | HPUX" on lines 416 and 430 and to remove any mention of SUN from line 441. After doing this, tcap compiles fine, and META key support works OK. Howard Weiss hsw at tycho.ncsc.mil -------