This project is read-only.

Hide console cursor

Jan 29, 2011 at 1:24 PM

You may ask why I'm doing this, but I won't beat about ze bush. I am making zis console GUI, it uses the Mouse class and divides the X and Y by 4 and 8 respectively to make it fit. I have everything sorted out, just need to know: How do you remove ze annoying cursor? For example, the mouse is at the edge of ze screen and ze annoying cursor shows up on the left. Console.CursorVisible gives a compile error.


Please help!

Jan 29, 2011 at 11:45 PM

You mean the underslash?Its easy to remouve, the setcursor function is in the cosmos.hardware.textscreen class.Hope it help.

Jan 30, 2011 at 2:11 AM

Ahh, thanks.

Jan 30, 2011 at 4:27 AM

There's no such function =.=

Jan 30, 2011 at 5:30 AM

Yes there is,just comment these line.


// cursor low byte to VGA index register

Cosmos.Kernel.CPUBus.Write8(0x3D4, 0x0F);

Cosmos.Kernel.CPUBus.Write8(0x3D5, (byte)(position & 0xFF));

// cursor high byte to vga index register

Cosmos.Kernel.CPUBus.Write8(0x3D4, 0x0E);

Cosmos.Kernel.CPUBus.Write8(0x3D5, (byte)((position >> 8) & 0xFF));