Mail Archives: djgpp/1998/05/18/03:15:38
Thomas Beauchamp wrote:
> How do I change the text and background colors in standard test mode?
If you are very lazy, do
out 3c8h,c
out 3c9h,R
out 3c9h,G
out 3c9h,B
c is the color index 0 background, 15 white, R,G,B is in
red,blue,green intensities in the range 0-63.
I'm not sure how you do the out's under djgpp, borland would
call it outportb(port,char value)
This code will simply redefine the color of white, it will
not let you use different colors, but you can do that
using the textattribute function.
--
* from zqex Salespersons please use the backdoor \dev\null *
* Darwinism or Christianity? *
* Well remember Christianity is only a theory *
* Homepage: http://www.fys.ku.dk/~zqex/c.cgi *
- Raw text -