home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!schwartz
- From: schwartz@roke.cs.psu.edu (Scott Schwartz)
- Subject: Re: Help on reading shell variable/environment
- In-Reply-To: bagwill@swe.ncsl.nist.gov's message of 16 Dec 92 14:30:18 GMT
- Message-ID: <BzFM19.5C2@cs.psu.edu>
- Sender: news@cs.psu.edu (Usenet)
- Nntp-Posting-Host: roke.cs.psu.edu
- References: <1glmqfINNfv5@agate.berkeley.edu> <7514@dove.nist.gov>
- Date: Fri, 18 Dec 1992 01:40:32 GMT
- Lines: 16
-
- bagwill@swe.ncsl.nist.gov (Bob Bagwill) writes:
- Joel A. Fine (joel@saffron.CS.Berkeley.EDU) wrote:
- : |> inside TCL/TK? I need to access the TERM variable so that to prevent my
- : |> TCL/TK program from being run when the user is not in an X window
- environment.
- :
- : wish: echo $env(TERM)
- : xterm
-
- Or maybe this:
-
- wish: if {[info exists env(TERM)]} {set term $env(TERM)}
-
-
- How about checking for DISPLAY instead. TERM is irrelevent to X.
-
-