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

  1. Path: sparky!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!mikefail
  2. From: mikefail@fail.austin.ibm.com (Michael E. Fail)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: determining if you are in an x-windows session
  5. Keywords: WINDOWID TERM env window
  6. Message-ID: <1992Nov18.192855.11025@awdprime.austin.ibm.com>
  7. Date: 18 Nov 92 19:28:55 GMT
  8. References: <1992Nov16.132809.10942@wap.oau.org>
  9. Sender: news@awdprime.austin.ibm.com (USENET News)
  10. Reply-To: mikefail@austin.ibm.com
  11. Distribution: usa
  12. Organization: IBM Graphics Systems Development
  13. Lines: 21
  14. Originator: @fail.austin.ibm.com
  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. Bill,
  26.  
  27. I use the "WINDOWID" environment variable to distinguish between an
  28. aixterm or an hft/tty (it is not set in the hft/tty).
  29.  
  30. Good Luck,
  31. Mike
  32. -- 
  33. ==============================================================================
  34. This is my personal opinion -- it does not reflect the opinion of my employer.
  35. ------------------------------------------------------------------------------
  36. Michael E. Fail    |  email:  mikefail@austin.ibm.com (VNET: AUSTIN(MIKEFAIL))
  37.