BenJay Programming Page

Welcome! This is my page dedicated to C/C++ programming. I have several example source codes from programs that I have written and information on ANSI . SYS. If you can use the source code, go ahead.


ANSI .SYS INFORMATION

ANSI.SYS is used on some DOS based machines to control the screen colors. This can cause problems for programmers because standard printf() commands may print the wrong colors when used with other color setting functions. The solution can be found in my ansi.c file. It first detects the presence of ANSI.SYS in memory by checking to see if ANSI escape commands will work. If they do, it uses ANSI commands to set the colors. Otherwise, it uses standard functions. It is fairly simple, and you can tell how each of the functions work just by looking at them.


If you like any of my programs or find them useful, or have questions about any of them, e-mail me at benjay@geocities.com
Back to BenJay Homepage