home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11625 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.1 KB

  1. Xref: sparky comp.unix.aix:11625 comp.unix.admin:6214
  2. Newsgroups: comp.unix.aix,comp.unix.admin
  3. Path: sparky!uunet!scifi!watson!mjp
  4. From: mjp@austin.ibm.com (Michael Phelps)
  5. Subject: Re: determining if you are in an x-windows session
  6. Originator: mjp@bwa.kgn.ibm.com
  7. Sender: @watson.ibm.com
  8. Message-ID: <1992Nov16.195412.5849@watson.ibm.com>
  9. Date: Mon, 16 Nov 92 19:54:12 GMT
  10. Distribution: usa
  11. Reply-To: mjp@vnet.ibm.com (Michael J. Phelps)
  12. References:  <1992Nov16.132809.10942@wap.oau.org>
  13. Organization: IBM Kingston NY
  14. Lines: 16
  15.  
  16.  
  17. In article <1992Nov16.132809.10942@wap.oau.org>, bdixon@wap.oau.org (Bill Dixon) writes:
  18. |> Very simply: is there any way to tell whether you are executing a program
  19. |> from within an x-windows session, as opposed to an ascii terminal?  The
  20. |> TERM environment variable may or may not be set to aixterm.
  21. |> -- 
  22. |> Bill Dixon
  23. |> bdixon@wap.oau.org
  24.  
  25.  Most programs seem to assume that if the DISPLAY environment variable is set,
  26. then X is active.  
  27.  
  28. -- 
  29. Michael Phelps, (external) mjp@vnet.ibm.com ..
  30.                 (internal) mjp@bwa.kgn.ibm.com .. mjp at kgnvmy         
  31.  (and last but not least a disclaimer)  These opinions are mine..       
  32.