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.
Unfortunately, this ancient knowledge seems to have been lost. VGA programming information used to be passed on from father to son through songs, poems and stories, but after many generations had passed, much of it had become corrupted. Now, it is rumored that somewhere out there, perhaps buried deep in the desert, lies a jar containing elderly scrolls written down by an ancient scribe, having fled hordes of heavily armed engineers from IBM after getting caught listening in through the air vent on a top secret meeting discussing IBM's most carefully guarded confidential trade secret: Their patented, revolutionary way to hide the text mode cursor, whose mysterious and enchanting power could easily lead the world into total darkness, should it fall into the wrong hands. No one has ever dared to embark on a journey to retrieve it, thinking that this dangerous power would best be left alone, buried where there would be no risk of a mortal using it to hide the cursor so well that it would be lost forever, wandering hopelessly about in a plane at the edge of existence itself, trapped where no one would be able to hear its wails...
Gigasoft wrote:Unfortunately, this ancient knowledge seems to have been lost. VGA programming information used to be passed on from father to son through songs, poems and stories, but after many generations had passed, much of it had become corrupted. Now, it is rumored that somewhere out there, perhaps buried deep in the desert, lies a jar containing elderly scrolls written down by an ancient scribe, having fled hordes of heavily armed engineers from IBM after getting caught listening in through the air vent on a top secret meeting discussing IBM's most carefully guarded confidential trade secret: Their patented, revolutionary way to hide the text mode cursor, whose mysterious and enchanting power could easily lead the world into total darkness, should it fall into the wrong hands. No one has ever dared to embark on a journey to retrieve it, thinking that this dangerous power would best be left alone, buried where there would be no risk of a mortal using it to hide the cursor so well that it would be lost forever, wandering hopelessly about in a plane at the edge of existence itself, trapped where no one would be able to hear its wails...
We can rebuild it.
max wrote:
Gigasoft wrote:Unfortunately, this ancient knowledge seems to have been lost...
Haha dude
Well, you should first tell the VGA controller which register to write to
;Disable the cursor (which should NEVER be displayed, unless the system is waiting for the user type text in)
mov ah,0x01 ;ah = BIOS function number (Set Text Mode Cursor Shape)
mov cx,0x2D0E ;VGA cursor settings, bits 5 and 6 of CH disables cursor
int 0x10 ;Call BIOS function (Set Text Mode Cursor Shape)
Of course I only use text mode during early boot (before I switch to graphics mode), and during early boot the system never waits for the user type text in, so there's no reason to care about enabling the cursor in text mode and no reason to stab at random VGA IO ports.
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.