[haiku-development] [PATCH] Remove text cursor from bootloader menu screens

  • From: "David Powell" <david@xxxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 1 Jul 2008 16:09:05 +0100

This proposed patch turns off the cursor when the video mode is set to text
mode in the bootloader.
This will remove the text cursor in the top-left corner of the screen when
using the bootloader menus.
I also changed a couple of the register assignments to make them clearer.
(They confused me initially)

David Powell.



Index: src/system/boot/platform/bios_ia32/video.cpp
===================================================================
--- src/system/boot/platform/bios_ia32/video.cpp    (revision 26186)
+++ src/system/boot/platform/bios_ia32/video.cpp    (working copy)
@@ -587,7 +587,7 @@
 {
     // sets 640x480 16 colors graphics mode
     bios_regs regs;
-    regs.eax = 0x12;
+    regs.eax = 0x0012;
     call_bios(0x10, &regs);
 }

@@ -597,8 +597,13 @@
 {
     // sets 80x25 text console
     bios_regs regs;
-    regs.eax = 3;
+    regs.eax = 0x0003;
     call_bios(0x10, &regs);
+
+    // turns off text cursor
+    regs.eax = 0x0100;
+    regs.ecx = 0x2000;
+    call_bios(0x10, &regs);
 }

Other related posts: