home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!mast.queensu.ca!dmurdoch
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Newsgroups: comp.lang.pascal
- Subject: Re: BGI Env variable
- Message-ID: <dmurdoch.148.716226085@mast.queensu.ca>
- Date: 11 Sep 92 15:41:25 GMT
- References: <2148.2AAF90B7@catpe.alt.za> <1992Sep11.125327.20440@kth.se>
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- Lines: 40
-
- In article <1992Sep11.125327.20440@kth.se> kjell@weber.e.kth.se (Kjell Rilbe) writes:
- >>BTW is the idea that all the BGI drivers should be in the directory, or
- >>would it be better to link the common drivers into the EXE (EGAVGA, HERC etc)
- >>and have an option for the user to specify an external driver which would
- >>then be located in the directory specified by the BGI enviroment variable?
- >
- >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.
-
- There seems to be a lot of disagreement about what the use of the
- environment variable should be. I think that as originally suggested, there
- need to be at least two variables.
-
- One, if present, specifies the exact BGI driver to use, regardless of what
- autodetect says. This would have to be manually loaded with
- InstallUserDriver. If it's not present, autodetection must be used.
-
- A similar variable could be used to specify a preferred default font.
-
- The other, if present, specifies the path to the directory where BGI drivers
- and fonts are stored. This is the directory to pass to InitGraph. If it's
- not present, the program should search the current directory, then the
- directory it was loaded from, then give up.
-
- I would suggest the names:
-
- BGI : path to drivers and fonts
- BGIDRV : particular driver
- BGIFNT : particular prefferred font
-
- The only way I can see that this convention (or any other) will be adopted
- is if someone takes the time to package it up. I've started the work with
- the spec above; does anyone care to fix up the problems in the spec, and
- write a little InitGraph replacement? Immortality is yours for the taking.
-
-
- Duncan Murdoch
- dmurdoch@mast.queensu.ca
-