home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5333 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  2.3 KB

  1. 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
  2. From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: BGI Env variable
  5. Message-ID: <dmurdoch.148.716226085@mast.queensu.ca>
  6. Date: 11 Sep 92 15:41:25 GMT
  7. References: <2148.2AAF90B7@catpe.alt.za> <1992Sep11.125327.20440@kth.se>
  8. Sender: news@knot.ccs.queensu.ca (Netnews control)
  9. Organization: Queen's University
  10. Lines: 40
  11.  
  12. In article <1992Sep11.125327.20440@kth.se> kjell@weber.e.kth.se (Kjell Rilbe) writes:
  13. >>BTW is the idea that all the BGI drivers should be in the directory, or 
  14. >>would it be better to link the common drivers into the EXE (EGAVGA, HERC etc)
  15. >>and have an option for the user to specify an external driver which would 
  16. >>then be located in the directory specified by the BGI enviroment variable?
  17. >
  18. >Wouldn't it be best to fo it this way: Let the program check for the 
  19. >environment variable BGI, and if it exists, use the BGI it sepcifies,
  20. >otherwise use the built-in autodetect to find which one of the standard
  21. >(and linked-in) BGI:s to use.
  22.  
  23. There seems to be a lot of disagreement about what the use of the 
  24. environment variable should be.  I think that as originally suggested, there 
  25. need to be at least two variables. 
  26.  
  27. One, if present, specifies the exact BGI driver to use, regardless of what 
  28. autodetect says.  This would have to be manually loaded with 
  29. InstallUserDriver.  If it's not present, autodetection must be used.  
  30.  
  31. A similar variable could be used to specify a preferred default font.
  32.  
  33. The other, if present, specifies the path to the directory where BGI drivers 
  34. and fonts are stored.  This is the directory to pass to InitGraph. If it's 
  35. not present, the program should search the current directory, then the 
  36. directory it was loaded from, then give up.
  37.  
  38. I would suggest the names:
  39.  
  40.   BGI     :   path to drivers and fonts
  41.   BGIDRV  :   particular driver 
  42.   BGIFNT  :   particular prefferred font
  43.  
  44. The only way I can see that this convention (or any other) will be adopted 
  45. is if someone takes the time to package it up.  I've started the work with 
  46. the spec above; does anyone care to fix up the problems in the spec, and 
  47. write a little InitGraph replacement?  Immortality is yours for the taking.
  48.  
  49.  
  50. Duncan Murdoch
  51. dmurdoch@mast.queensu.ca
  52.