Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!bu-cs!bzs From: bzs@bu-cs.BU.EDU (Barry Shein) Newsgroups: comp.emacs Subject: Termcaps in Gnu Emacs Message-ID: <3012@bu-cs.BU.EDU> Date: Thu, 18-Dec-86 23:48:04 EST Article-I.D.: bu-cs.3012 Posted: Thu Dec 18 23:48:04 1986 Date-Received: Fri, 19-Dec-86 04:46:55 EST Organization: Boston U. Comp. Sci. Lines: 27 >I would like to play with a termcap for a particular terminal. I >don't want to have to edit /etc/termcap to do this. But it seems that >Gnu Emacs (at least version 17) only looks at the TERM environment >variable. Could it be altered so that it uses TERMCAP environment >variable if it is present, and if not, then the TERM variable? > >Dale Gnu Emacs uses the TERMCAP variable, look in src/termcap.c, tgetent(). Or (easier), just set your TERMCAP variable to the full path name (ie. starting with a '/') to the file in which you have put your experimental TERMCAP entry: For csh: setenv TERMCAP /usr/myname/termcap.test # whatever file/path for sh: TERMCAP=/usr/myname/termcap.test # ditto export TERMCAP and see if it doesn't "take" (apologies if you knew this, but this is all true under 17.64 so something else must need explaining, perhaps you're confusing what's going on the lisp files and startup.el and the C source that does what you're referring to?) -Barry Shein, Boston University