It should be white instead of blinking....

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Nils
Posts: 10
Joined: Mon Apr 30, 2007 6:27 am
Contact:

It should be white instead of blinking....

Post 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.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

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

Post 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
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Nils
Posts: 10
Joined: Mon Apr 30, 2007 6:27 am
Contact:

Post by Nils »

I'm using GRUB. What should I do then ?
User avatar
carbonBased
Member
Member
Posts: 382
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Post 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)
Nils
Posts: 10
Joined: Mon Apr 30, 2007 6:27 am
Contact:

Post by Nils »

Thx. :)
Post Reply