home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / 18354 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!uunet.ca!canrem!sidefx!mark
  3. From: mark@sidefx.uucp (Mark Elendt)
  4. Subject: winopen() with no graphics
  5. Message-ID: <BzzHC2.9AM@sidefx.uucp>
  6. Summary: Is it possible to find out whether you can make graphics calls?
  7. Keywords: getgdesc winopen
  8. Organization: Side Effects Software Inc.
  9. Date: Mon, 28 Dec 1992 19:12:02 GMT
  10. Lines: 28
  11.  
  12. If you have no graphics console and you try to do a winopen(), the
  13. call doesn't fail, it actually terminates your process or hangs.
  14. Apparently, there is no getgdesc() call to determine whether it is
  15. possible to do a winopen() safely.
  16.  
  17. If there is no one logged on to a machine:
  18.  
  19.     getgdesc(GD_NSCRNS)    == 1
  20.     getgdesc(GD_SCRNTYPE)    == GD_SCRNTYPE_WM
  21.     getgdesc(GD_WSYS)    == GD_WSYS_4S
  22.  
  23. Nothing to indicate that a winopen() will terminate or hang.
  24.  
  25. Of course this problem really crops up if an application is run from
  26. a dumb terminal or run at night after everyone has logged out.
  27.  
  28. Sometimes, the graphics are nice if the user is using an application
  29. interactively, but not necessary if the application is run in batch
  30. mode.  Occasionally, the user leaves options on for the interactive
  31. graphics when doing batch runs and it would be nice if the program
  32. didn't terminate on them.
  33.  
  34. Any ideas?
  35.  
  36. ___________________________________________________________________
  37. Mark Elendt                Side Effects Software Inc.,
  38. UUCP:      mark@sidefx.uucp        Toronto, Ontario Canada
  39. Internet: sidefx!mark@canrem.com    (416) 366-4607
  40.