Console utilities
Here are two libraries that emulate the DOS-style console i/o and
graphics, for Dev-C++ (mingw/gcc/win32).
You can expect many problems in this version, including the information on this page.
Please contact me about any
error (even a minor typo in a comment).
Basically, these are the Windows versions of "conio" and "graphics"
(headers and libraries). Actually "graphics" is not related to the
console, but I couldn't find a better name for the page and the
archives.
My conio is based on the one included with Dev-C++ 4.9.8.0, and I
rewrote it almost completely, also adding two delay functions
(originally from dos.h) and some new functions for console
manipulation.
The graphics stuff is based on winbgim 3.4, and I fixed several
issues (they're commented in the source).
Note: these libraries are NOT standard, they are mainly provided for porting legacy projects.
The files:
-
headers and libraries:
- conio 1.2 and winbgim 3.52 - compiled with gcc 3.3.1
- conio 1.1 and winbgim 3.5 - compiled with gcc 3.2
this archive contains conio.h, winbgim.h and a dummy graphics.h (that only
includes winbgim.h), and libconio.a and libbgi.a; extract the archive
in your Dev-Cpp folder.
To use conio, #include <conio.h> and link with -lconio
To use graphics, #include <winbgim.h> or <graphics.h> and
link with -lbgi -lgdi32
-
source code:
- conio 1.2 and winbgim 3.52
- conio 1.1 and winbgim 3.5
this archive contains the modified conio.c and winbgim.cpp, and also the old conio.h,
conio.c, winbgim.h and winbgim.cpp.
I compiled conio.c with -O3 -std=c99, and winbgim.cpp with -O3, and
I stripped the libraries.
-
a conio demo that also serves as
documentation for the functions;
for graphics demos and documentation see the winbgim page
written by Adrian Sandor, last updated on 24 Dec 2004