Thread View: gnu.emacs.bug
1 messages
1 total messages
Started by Paul J Rippin
Thu, 24 Dec 1992 10:19
termcap-1.1
Author: Paul J Rippin
Date: Thu, 24 Dec 1992 10:19
Date: Thu, 24 Dec 1992 10:19
54 lines
2543 bytes
2543 bytes
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 | |
+-------------------------------------------------------------------+
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads