Page 1 of 1

It should be white instead of blinking....

Posted: Sun Jul 01, 2007 6:34 am
by Nils
Hi,

i want to set the foreground-color (text) to black and the background-color to white. In QEMU it works, because it not supports blinking (maybe because of my settings), but on a real Computer is no black on white, but blinking-black on light-grey. How can i disable blinking or make the background with a other method white ? The code i use is 0xF0 in my video-driver.

Re: It should be white instead of blinking....

Posted: Sun Jul 01, 2007 10:21 am
by Brendan
Hi,
Nils wrote:i want to set the foreground-color (text) to black and the background-color to white. In QEMU it works, because it not supports blinking (maybe because of my settings), but on a real Computer is no black on white, but blinking-black on light-grey. How can i disable blinking or make the background with a other method white ? The code i use is 0xF0 in my video-driver.
On standard VGA cards in text mode, bit 7 of the attribute normally controls blinking, so you can only have 8 background colours.

It's easy to disable this blinking (and have 16 background colours instead) if you're in real mode:

Code: Select all

	xor bx,bx
	mov ax,0x1003
	int 0x10
For reference, see the details for this BIOS function.


Cheers,

Brendan

Posted: Mon Jul 02, 2007 6:13 am
by Nils
I'm using GRUB. What should I do then ?

Posted: Mon Jul 02, 2007 7:19 am
by carbonBased
You could either:
- drop back to real mode to call the bios
- execute this bios code in a vm86 task
- program the VGA card directly (it's interface is well documented)

Posted: Mon Jul 02, 2007 2:43 pm
by Nils
Thx. :)