Page 1 of 1

Simple VGA Question

Posted: Sun May 18, 2003 12:03 am
by tom1000000
Hello,

I was hoping someone could give me the code for turning off (and back on) the text cursor in protected mode.

I know its possible in real mode using int 10h - ah=01h,
but obviously thats useless for any real operating system.

Thanks!

Re:Simple VGA Question

Posted: Sun May 18, 2003 1:23 pm
by Pype.Clicker
it can be done in protected mode by directly accessing VGA hardware registers. (try a g00gle search on "VGA programming")

Re:Simple VGA Question

Posted: Mon May 19, 2003 2:04 am
by tom1000000
Hello,

Thanks for the suggestion. I was hoping someone had already written the code for me, but I will work it out.

Tom

Re:Simple VGA Question

Posted: Mon May 19, 2003 6:09 am
by Perica
..

Re:Simple VGA Question

Posted: Tue May 20, 2003 4:27 am
by tom1000000
Hello,

I have managed to work it out thanks. It was a simply a single bit to modify. The FreeVGA site is definitely a life saver.

As for borrowing other people's code, the GPL expressly permits that (provided you follow the restrictions), and of course there's other similar licenses. And I would rather spend time on more important stuff than text output. I want the console up and running as quick as possible.

Re:Simple VGA Question

Posted: Tue May 20, 2003 7:13 am
by Pype.Clicker
tom1000000 wrote: As for borrowing other people's code, the GPL expressly permits that (provided you follow the restrictions), and of course there's other similar licenses. And I would rather spend time on more important stuff than text output. I want the console up and running as quick as possible.
Absolutely true ... and i would probably have pointed you to a piece of code if i had one ... but not everyone on this forum is pro-GPL, and too many newbies just ask for code on a plate and then complain they don't understand what they get ...