(INIT-GRAPH [driver [graph-mode [path-for-BGI-files]]])

Init-graph loads the BGI driver into memory, initialize all to the defaults values and turn the graphic device into graphic mode. You cannot issue any graphic command prior to calling INIT-GRAPH. In addition to these standard operations, PCSCHEME also reduces the {\itt 'CONSOLE} window to the bottom 4 lines of screen, i.e. calls (SPLIT-SCREEN 4). Use (FULL-SCREEN) to use the whole text screen.

Driver can be any symbol returned by INSTALL-USER-DRIVER, or one of the following:

{\itt 'DETECT}
{\itt 'CGA}
{\itt 'MCGA}
{\itt 'EGA}
{\itt 'EGA64}
{\itt 'EGAMONO}
{\itt 'IBM8514}
{\itt 'HERCMONO}
{\itt 'ATT400}
{\itt 'VGA}
{\itt 'PC3270}

{\itt 'DETECT} causes auto-detection of graphic hardware. It works only for all the original Borland drivers except IBM-8514.

The graph-mode range depends of the BGI driver. It can be obtained using the GET-MAX-MODE primitive (see below). You can use the following symbols, or a valid number:



 {\itt 'HERCMONO-HIxxx} 
 {\itt 'CGA-C0} 		 
320×200, 4 colors 

{\itt 'CGA-C1} 320×200, 4 colors
{\itt 'CGA-C2} 320×200, 4 colors
{\itt 'CGA-C3} 320×200, 4 colors
{\itt 'CGA-HI} 640×200, 2 colors
{\itt 'MCGA-C0} 320×200, 4 colors
{\itt 'MCGA-C1} 320×200, 4 colors
{\itt 'MCGA-C2} 320×200, 4 colors
{\itt 'MCGA-C3} 320×200, 4 colors
{\itt 'MCGA-MED} 640×200, 2 colors
{\itt 'MCGA-HI} 640×480, 2 colors
{\itt 'ATT400-C0} 320×200, 4 colors
{\itt 'ATT400-C1} 320×200, 4 colors
{\itt 'ATT400-C2} 320×200, 4 colors
{\itt 'ATT400-C3} 320×200, 4 colors
{\itt 'ATT400-MED} 640×200, 2 colors
{\itt 'ATT400-HI} 640×400, 2 colors
{\itt 'EGA-LO} 640×200, 16 colors, 4 pages
{\itt 'EGA-HI} 640×350, 16 colors, 2 pages
{\itt 'EGA64-LO} 640×200, 16 colors
{\itt 'EGA64-HI} 640×350, 16 colors
{\itt 'EGAMONO-HI} 640×350, 2 colors, 2 pages6.1
{\itt 'VGA-LO} 640×200, 16 colors, 2 pages
{\itt 'VGA-MED} 640×350, 16 colors, 2 pages
{\itt 'VGA-HI} 640×480, 16 colors
{\itt 'HERCMONO-HI} 720×348, 2 colors, 2 pages
{\itt 'PC3270-HI} 720×350, 2 colors
{\itt 'IBM8514-LO} 1024×768, 256 colors
{\itt 'IBM8514-HI} 640×480, 256 colors
{\itt 'CGA-C}n〉 are modes with same resolution but different palettes: This is true for {\itt 'MCGA-C}n〉 and {\itt 'ATT400-C}n〉 too.

The default values are:

driver {\itt 'DETECT}
mode Best colors, best resolution
path-for-BGI-files PCS-SYSDIR, the directory containing BOOTSTRP.APP