[comp.windows.x] How to detect remote terminals under X

dprrhb@inetg1.ARCO.COM (Reginald H. Beardsley) (04/03/91)

I work with a single home directory mounted by 5 different systems, DECstation
SPARCstation, Silicon Graphics, System V/386 and Sun 386i.  I solved the problem by dumping the environment variables to a file with the following lines
inserted in my .cshrc and .login files.

set      ..&.startup.log
printenv >>&.startup.log

I then worked through all the different symbols looking for distinctions.  
No one thing will work.  The term entries are the most useful but won't 
always work.  I was forced to do this because I usually use an Xterminal.
My .login sequence is several hundred lines and all I do is set the system 
up for the keyboard and display I am using.  It is very messy.  To cut the clutter I built a large case which switches on $TERM and sources configuration 
files for the individual systems.

I delete the .startup.log file when I log out to keep it from growing too
large.

-- 
Reginald H. Beardsley       
ARCO Information Services
Plano, TX 75075           
Phone: (214)-754-6785
Internet: dprrhb@arco.com