The SDL_bgi and libXbgi Libraries

Introduction

This site provides binaries and documentation for SDL_bgi and
libXbgi. These are ports of old
Borland Graphics Interface, originally written for DOS, to modern
systems.

SDL_bgi is based on SDL2, and is
portable to any platform supported by SDL2 (Windows, OS X, GNU/Linux,
Android). libXbgi is based on Xlib, so it only runs
under X11.

These compatibility libraries can be used to port old programs written
for Turbo/Borland C to Linux, other Unix-like systems, and Windows
(SDL_bgi). And, of course, to write new graphics programs with minimal
effort: BGI, once extremely popular, was probably the simplest way to
implement presentation graphics in C programs. The same ease of
programming can be obtained on modern systems. Programming fractals,
cellular automata, geometry, physics models etc. is a breeze with
SDL_bgi or libXbgi.

SDL_bgi is licensed under the Zlib license.
libXbgi is released under a generic free software license; please read
License.txt.

Which library should you use? Well, it depends:

most users will want to use SDL_bgi, which is faster and can
be used along native SDL2 functions;

if you don't want SDL dependency, then go libXbgi.

Please note that libXbgi is unsupported, and it's only
provided in its present state. Bugs will not be fixed unless you
provide the fix!

Download

SDL_bgi

The current release of SDL_bgi is 2.0.8. To compile it from sources,
you will need a compiler (gcc or clang are fine) and SDL2. On Debian
and Ubuntu-like distributions, you will need the package 'libsdl2-dev'
and its dependencies.

These packages were built on a Linux Mint 17 box. The DEB packages
were obtained via the alien converter.

libXbgi

The current release of libXbgi is version 364. To compile it from
sources, you will need a compiler (gcc or clang are fine) and the X11
development packages; on Debian-like distributions, it's 'libx11-dev'
and its depencencies.