home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!uunet.ca!canrem!sidefx!mark
- From: mark@sidefx.uucp (Mark Elendt)
- Subject: winopen() with no graphics
- Message-ID: <BzzHC2.9AM@sidefx.uucp>
- Summary: Is it possible to find out whether you can make graphics calls?
- Keywords: getgdesc winopen
- Organization: Side Effects Software Inc.
- Date: Mon, 28 Dec 1992 19:12:02 GMT
- Lines: 28
-
- If you have no graphics console and you try to do a winopen(), the
- call doesn't fail, it actually terminates your process or hangs.
- Apparently, there is no getgdesc() call to determine whether it is
- possible to do a winopen() safely.
-
- If there is no one logged on to a machine:
-
- getgdesc(GD_NSCRNS) == 1
- getgdesc(GD_SCRNTYPE) == GD_SCRNTYPE_WM
- getgdesc(GD_WSYS) == GD_WSYS_4S
-
- Nothing to indicate that a winopen() will terminate or hang.
-
- Of course this problem really crops up if an application is run from
- a dumb terminal or run at night after everyone has logged out.
-
- Sometimes, the graphics are nice if the user is using an application
- interactively, but not necessary if the application is run in batch
- mode. Occasionally, the user leaves options on for the interactive
- graphics when doing batch runs and it would be nice if the program
- didn't terminate on them.
-
- Any ideas?
-
- ___________________________________________________________________
- Mark Elendt Side Effects Software Inc.,
- UUCP: mark@sidefx.uucp Toronto, Ontario Canada
- Internet: sidefx!mark@canrem.com (416) 366-4607
-