Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!APPLE.COM!nli!jym From: nli!jym@APPLE.COM Newsgroups: gnu.emacs Subject: termcap Message-ID: <8912062326.AA04673@nlp9> Date: 6 Dec 89 23:26:58 GMT References: <8912062036.AA22943@life.ai.mit.edu> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Natural Language Inc. Lines: 27 Get on a VT300_Series terminal and run the following program: main() { printf("%s\n",getenv("TERM")); } The output will be "undefined." Since Emacs calls getenv("TERM"), it looks for a termcap entry named "undefined." The solution is to put "undefined" in as one of the terminal names in the the termcap capability entry in TERMCAP.DAT. Kludge city. The problem is that the VAXCRTL isn't up-to-date with the rest of the system. It's also generally incompatible with DEC/Shell, which determines the TERM variable a different way . . . usually dumber (i.e., "vt100" rather than "vt100-80") but in this case smarter (i.e., "vt300"). CAVEAT: This is true for VMS V5.1, but I'm not running VMS V5.2 yet. However, the release notes for V5.2 don't mention any fixes to this part of the VAXCRTL. ::::.-----.:::::<_Jym_>::::::::::::::::::::::::::::::::::::::::::: :::/ | \::::.-----.:::::::::::::::: Jym Dyer ::::::::::::::::: ::/ | \::/ o o \::::::::::::: jym@nli.com :::::::::::::::: ::\ /|\ /::\ \___/ /:::::::::: Natural Language Inc. ::::::::: :::\ / | \ /::::`-----':::::::::: Berserkeley, California :::::::: ::::`-----':::::::::::::::::::::::::::::::::::::::::::::::::::::::