Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!swrinde!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.windows.x Subject: Re: Ways to detect what window system is running. Message-ID: <7270@auspex.auspex.com> Date: 19 Apr 91 22:03:33 GMT References: <963@epiwrl.UUCP> <1991Apr17.085930.4948@jarvis.csri.toronto.edu> Organization: Auspex Systems, Santa Clara Lines: 5 >Or in this particular case, you could do a getenv("TERM") and see if it's >"sun" or "xterm". Umm, well, it could be "sun" if you're running under X; "shelltool" *does* come in a version that runs under X....