home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.bug
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jet.UK!pjr
- From: pjr@jet.UK (Paul J Rippin)
- Subject: termcap-1.1
- Message-ID: <9212241019.AA21670@mmi-codas.jet.uk>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Thu, 24 Dec 1992 10:19:03 GMT
- Approved: bug-gnu-emacs@prep.ai.mit.edu
- Lines: 56
-
- Version : 1.1
- Compiler: gcc-2.2.2
- Flags : -O2
- H/W : Sparc2
- O/S : SunOs 4.1.2
-
- If $TERMCAP contains the terminal description and NOT the path of the
- termcap file, AND $TERM is not the same terminal as the description then
- /etc/termcap should be used to find the new description. This was not
- happening. GNUtermcap was still trying to open the first part of the
- description as a file. This came to light using the program xterm.
-
- Xterm running as a vt100 had already loaded the vt100 description into
- $TERMCAP. From the shell inside xterm we tried to run "xterm -t" which
- starts up a tektronix 4014 window, so xterm needed to search for the
- 4014 entry in /etc/termcap. Unfortunately it never looked there, but
- tried to open "vs|xterm|vs100|xterm" and then reported
- "xterm: unable to find usable termcap entry."
-
- This was fixed by modifying line 410 of termcap.c. If the code reaches
- this line then tem must by NULL or point to a file. If it contains a
- usable entry then we have previous executed "goto ret".
-
- Paul
-
- *** termcap.c.orig Thu Oct 1 14:44:34 1992
- --- termcap.c Wed Dec 23 17:47:32 1992
- ***************
- *** 406,412 ****
- else
- indirect = (char *) 0;
-
- ! if (!tem)
- #ifdef VMS
- tem = "emacs_library:[etc]termcap.dat";
- #else
- --- 406,412 ----
- else
- indirect = (char *) 0;
-
- ! if (!tem || !filep) /* tem && !filep && $TERM = name has gone to ret: */
- #ifdef VMS
- tem = "emacs_library:[etc]termcap.dat";
- #else
-
- +-------------------------------------------------------------------+
- | Paul Rippin | Voice : 44-(0)235-465243 |
- | CODAS Division | FAX : 44-(0)235-464404 |
- | JET Joint Undertaking | E-mail : pjr@jet.uk |
- | Abingdon |-------------------------------------------|
- | Oxfordshire | |
- | OX14 3EA | |
- | United Kingdom | |
- +-------------------------------------------------------------------+
-
-
-