The command line window stores characters and their colors in a big array.
See http://www.arl.wustl.edu/~lockwood/c...23/CH23-1.html or search google with "color b800 video dos".
So, usually, you change the color of something by changing a few bytes in memory. The example is given in assembly, but it is the same thing for C, or maybe you can include some lines of assembly code into your C source file.
Last edited by S_M_A; September 12th, 2011 at 01:18 PM.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Bookmarks