drw@cullvax.UUCP (Dale Worley) (12/19/86)
A while back I posted an article about custom termcaps in GNU Emacs. Based on hints from bzs@bu-cs and earleh@dartvax, I found the relevant code (tgetent() in src/termcap.c). What happens is: If the TERMCAP environment variable starts with "/", it is the file from which the termcap entry for the terminal type stored in the TERM environment variable will extracted. If the TERMCAP environment variable doesn't start with "/", it is considered the termcap entry to use, but only if the terminal name (from TERM) is listed in the entry. (This is the way we normally set up our environments at cullvax.) Otherwise, TERM is looked up in /etc/termcap as usual. Apparently I was having trouble because I wasn't altering both TERMCAP and TERM at the same time. Dale -- Dale Worley Cullinet Software UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw ARPA: cullvax!drw@eddie.mit.edu