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.
Hi!
I know it's not the most important part of an operating system, but I'm curious: How can I change he undernine cursor shape to something else, like a solid block? I use the simple code to update it (basically from the wiki):
LPeter wrote:Is there even a way to do it? I haven't found too much info about it.
In theory the text mode cursor (at least for VGA cards) can be set to between one and N rows tall; and you can also change whether the cursor blinks or not. The most reliable way to do this (with the highest chance of avoiding compatibility problems with "not quite 100% VGA compatible" hardware) is using the "Set text mode cursor shape" BIOS function.
However, it's probably better to disable the hardware cursor during boot; then emulate a cursor in software (without using BIOS functions or diddling with "hopefully VGA compatible maybe" IO ports after boot). The simplest way to do this is to invert the attribute of the character where your cursor is.
Of course the best option is to refuse to bother with stinky old text mode in the first place, and just use graphics modes. This allows you to have a modern "vertical bar" cursor in the gap between characters (and has many other significant advantages).
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.