<s>
The	O
Borland	B-Language
Graphics	I-Language
Interface	I-Language
,	O
also	O
known	O
as	O
BGI	O
,	O
was	O
a	O
graphics	O
library	B-Library
bundled	O
with	O
several	O
Borland	O
compilers	O
for	O
the	O
DOS	B-Device
operating	O
systems	O
since	O
1987	O
.	O
</s>
<s>
BGI	O
was	O
also	O
used	O
to	O
provide	O
graphics	O
for	O
many	O
other	O
Borland	O
products	O
including	O
the	O
Quattro	B-Application
Pro	I-Application
spreadsheet	O
.	O
</s>
<s>
The	O
library	B-Library
loaded	O
graphic	O
drivers	O
( *	O
.BGI	O
)	O
and	O
vector	O
fonts	O
( *	O
.CHR	O
)	O
from	O
disk	O
in	O
order	O
to	O
provide	O
device	O
independent	O
graphics	O
support	O
.	O
</s>
<s>
There	O
also	O
were	O
BGI	B-Language
drivers	I-Language
for	O
some	O
kinds	O
of	O
plotters	O
.	O
</s>
<s>
The	O
last	O
Borland	O
's	O
C++	O
IDE	O
for	O
DOS	B-Device
is	O
Borland	O
C++	O
3.1	O
(	O
1992	O
)	O
.	O
</s>
<s>
The	O
last	O
C++	O
environment	O
which	O
supports	O
BGI	O
is	O
Borland	O
C++	O
5.02	O
(	O
1997	O
)	O
,	O
which	O
works	O
under	O
Windows	O
but	O
can	O
compile	O
DOS	B-Device
programs	O
.	O
</s>
<s>
BGI	O
was	O
less	O
powerful	O
than	O
modern	O
graphics	O
libraries	O
such	O
as	O
SDL	B-Operating_System
or	O
OpenGL	B-Application
,	O
since	O
it	O
was	O
designed	O
for	O
2D	O
presentation	O
graphics	O
instead	O
of	O
event-based	O
3D	O
applications	O
.	O
</s>
<s>
Given	O
the	O
popularity	O
of	O
Borland	O
compilers	O
,	O
a	O
few	O
independent	O
software	O
developers	O
produced	O
BGI	B-Language
drivers	I-Language
for	O
non-standard	O
video	O
modes	O
,	O
advanced	O
video	O
cards	O
,	O
plotters	O
,	O
printers	O
,	O
and	O
graphics	O
file	O
output	O
.	O
</s>
<s>
In	O
1994	O
Jordan	O
Hargraphix	O
Software	O
released	O
SVGA	O
BGI	B-Language
drivers	I-Language
version	O
5.5	O
that	O
are	O
compatible	O
with	O
some	O
SVGA	O
hardware	O
like	O
ATI	O
or	O
Cirrus	O
Logic	O
cards	O
and	O
VESA	O
VBE-compatible	O
cards	O
.	O
</s>
<s>
Also	O
there	O
are	O
tweaked	O
VGA	O
drivers	O
for	O
non-standard	O
graphic	O
modes	O
supported	O
by	O
VGA	O
by	O
writing	O
directly	O
into	O
its	O
registers	O
,	O
protected	B-Application
mode	I-Application
driver	O
versions	O
for	O
Turbo	B-Application
Pascal	I-Application
7.0	O
and	O
mouse	O
driver	O
(	O
actually	O
cursor	O
handler	O
for	O
unsupported	O
video	O
modes	O
by	O
standard	O
mouse	O
drivers	O
)	O
.	O
</s>
<s>
These	O
drivers	O
were	O
shareware	B-License
and	O
buying	O
them	O
let	O
receiving	O
their	O
source	O
code	O
and	O
technical	O
support	O
;	O
now	O
they	O
are	O
no	O
longer	O
supported	O
,	O
but	O
on	O
19	O
December	O
2020	O
Jordan	O
Hargrave	O
kindly	O
released	O
source	O
code	O
under	O
the	B-License
MIT	I-License
License	I-License
on	O
GitHub	B-Application
.	O
</s>
<s>
Main	O
bugs	O
are	O
lack	O
of	O
aligning	O
bytes	O
support	O
in	O
VESA	O
true-color	O
modes	O
(	O
so	O
the	O
true-color	O
driver	O
is	O
not	O
suitable	O
for	O
Nvidia	O
graphic	O
cards	O
)	O
and	O
video	O
memory	O
bank	O
switching	O
bug	O
in	O
mouse	O
driver	O
(	O
since	O
real	B-Application
mode	I-Application
addressing	O
space	O
is	O
1	O
megabyte	O
,	O
but	O
some	O
video	O
modes	O
require	O
up	O
to	O
4	O
megabytes	O
of	O
memory	O
,	O
it	O
is	O
split	O
into	O
64	O
kilobyte	O
banks	O
)	O
.	O
</s>
<s>
A	O
BGI-compatible	O
library	B-Library
,	O
named	O
Graph	O
,	O
is	O
included	O
in	O
the	O
Free	B-Operating_System
Pascal	I-Operating_System
Pascal	O
compiler	O
.	O
</s>
<s>
The	O
following	O
program	O
,	O
written	O
for	O
Borland	B-Application
Turbo	I-Application
C	I-Application
,	O
initialises	O
the	O
graphics	O
and	O
draws	O
1000	O
random	O
lines	O
:	O
</s>
