Simple VGA Question

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
tom1000000

Simple VGA Question

Post 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!
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Simple VGA Question

Post by Pype.Clicker »

it can be done in protected mode by directly accessing VGA hardware registers. (try a g00gle search on "VGA programming")
tom1000000

Re:Simple VGA Question

Post 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
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Simple VGA Question

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 9:12 pm, edited 1 time in total.
tom1000000

Re:Simple VGA Question

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Simple VGA Question

Post 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 ...
Post Reply