home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!nigel.msen.com!caen!uakari.primate.wisc.edu!ames!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
- From: exuptr@exu.ericsson.se (exuptr@exu.ericsson.se)
- Newsgroups: comp.lang.pascal
- Subject: Re: BGI Env variable
- Message-ID: <exuptr.542.716424482@exu.ericsson.se>
- Date: 13 Sep 92 22:48:02 GMT
- References: <2148.2AAF90B7@catpe.alt.za> <1992Sep11.125327.20440@kth.se> <1992Sep12.070621.17525@lugb.latrobe.edu.au>
- Sender: news@exu.ericsson.se
- Organization: Ericsson Network Systems, Inc.
- Lines: 36
- Nntp-Posting-Host: pc254167.exu.ericsson.se
-
- In article <1992Sep12.070621.17525@lugb.latrobe.edu.au> 9125113g@lux.latrobe.edu.au (Mitch Davis) writes:
- >From: 9125113g@lux.latrobe.edu.au (Mitch Davis)
- >Subject: Re: BGI Env variable
- >Date: 12 Sep 92 07:06:21 GMT
-
- >In article <1992Sep11.125327.20440@kth.se> kjell@weber.e.kth.se (Kjell Rilbe) writes:
- >>In article <2148.2AAF90B7@catpe.alt.za> Louis.Mandelstam@p2.f42.n7101.z5.fidonet.org (Louis Mandelstam) writes:
- >>>.....
- >>
- >>Wouldn't it be best to fo it this way: Let the program check for the
- >>environment variable BGI, and if it exists, use the BGI it sepcifies,
- >>otherwise use the built-in autodetect to find which one of the standard
- >>(and linked-in) BGI:s to use.
-
- >In fact, (since a LOT of programs just pass an empty string to the BGI
- >Init thingy), the '' can be replaced with GetEnv('BGI'), and you get the
- >best of both worlds - downward compatibility and support for the BGI
- >variable.
-
- >I also think (Duncan!) BGIDRV and BGIFNT are suitable names for the
- >other options.
-
- >Mitch.
-
- How about replacing the '' with getenv('BGI') + ';' + getenv('PATH');
- The latter segment is what I currently use, and since most (but admittedly
- not all) programs called in this way are on the path, presumably the BGI
- files would be also.
-
- ----------------------------------------------------------------------------
- "This must be Thursday. I never could get the hang of Thursdays"
- - Douglas Adams
- - Patrick Taylor (Arthur Dent)
- Ericsson Network Systems
- exuptr@exu.ericsson.se "Don't let the .se fool you"
- or exuptr@ZGNews.Lonestar.Org, exu.exuptr@memo.ericsson.se
-