[comp.emacs] Emacs terminal type

david@WUBIOS.WUSTL.EDU (David J. Camp) (11/12/90)

In Reply to this Note From: <Jerry Frain>
>
>When I shell out of emacs using terminal-emulator or something similar,
>my TERM environment variable is set to "emacs" term type.  Our termcap
>file does not define an emacs terminal type, and I can't seem to find
>the termcap definition in the distribution source code for emacs.
>
>What gives?  I must be doing something wrong.

I got caught by this too.  Everything would work in the terminal-
emulator window, but when I spawned a new C SHell, some things 
would stop working.  I tracked it down to the fact that I was 
using 

    setenv TERMCAP ~/termcap

to point to a local termcap file.  The terminal-emulator places
the emacs-virtual terminal definition into the TERMCAP environment
variable.  When I spawned a shell, my .cshrc script clobbered the 
definition.

I now use:

    if ( ! ${?TERMCAP} ) setenv TERMCAP ~/termcap

and everything works fine.  

It is not necessary for emacs-virtual to be defined in the
/etc/termcap file if all the fields are defined in the TERMCAP
environment variable.  -David-

p.s.  I no longer use the terminal-emulator, because I would stay
in emacs so long that portions got swapped.  When I started using
inactive code sections, the delay was very annoying.  I now use
the 'screen' program from comp.sources.unix instead, with emacs
as an external editor.

p.p.s.  I know this violates the spirit of Emacs as defined by
rms, but you can see my dilemma.  If I stay in emacs all the time
as recommended, my response time is poorer than if I constantly
exit and reenter.  This is a serious problem that needs to be
addressed by the FSF.  -David-

>
>  --Jerry
>
>--
>Jerry Frain -- Perpetual Student                Kansas State University
>                                        Department of Computing & Info Sciences
>Internet : jxf@cis.ksu.edu                         Manhattan, Kansas
>UUCP     : ...!rutgers!ksuvax1!jxf
>

david@wubios.wustl.edu             ^     Mr. David J. Camp
david%wubios@wugate.wustl.edu    < * >   +1 314 382 0584
...!uunet!wugate!wubios!david      v     "God loves material things."