Page 1 of 1

oh no! my text is blinking!

Posted: Mon Aug 22, 2005 11:20 pm
by datajack
my function fr setting the code color is

Code: Select all


int attrib = 0x0F;

void settextcolor(unsigned char forecolor, unsigned char backcolor)
{
   attrib = (backcolor << 4 ) | (forecolor & 0x0F);
}
when i use the function to chang the text and back ground color, my text blinks at boottime how is this stopped...

Re:oh no! my text is blinking!

Posted: Tue Aug 23, 2005 12:02 am
by Pype.Clicker
the highest bit of attributes is the "blinking bit" unless you program the VGA card to support 16 background colours instead. check "freevga" document if you want to know more about it or just stick to the 8 first colours for the background.

Re:oh no! my text is blinking!

Posted: Tue Aug 23, 2005 2:08 am
by Brendan
Hi,

If you're in real mode you can disable the blinking (and enable 16 background colours) using BIOS Int 0x10, AX=0x1003. See:

http://www.ctyme.com/intr/rb-0117.htm

At least, this is what I've been using...


Cheers,

Brendan

Re:oh no! my text is blinking!

Posted: Tue Aug 23, 2005 2:36 am
by raywill
Just set the eighth bit 0.