Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!helios!inetg1!dprrhb From: dprrhb@inetg1.ARCO.COM (Reginald H. Beardsley) Newsgroups: comp.windows.x Subject: How to detect remote terminals under X Message-ID: <1991Apr3.152009.425@Arco.COM> Date: 3 Apr 91 15:20:09 GMT Sender: dprrhb@inetg1 (Reginald H. Beardsley) Organization: ARCO Oil & Gas Company Lines: 23 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